Support for static function/variable declarations.

Submitted by Gabriël Konat on 31 May 2013 at 12:05

On 31 May 2013 at 12:07 Gabriël Konat commented:

On 31 May 2013 at 12:10 Gabriël Konat commented:

Static functions are probably not required in MetaC, since modules encapsulate visibility. Are static variables needed?


On 31 May 2013 at 12:10 Gabriël Konat tagged rfc

On 1 June 2013 at 13:38 Daco Harkes commented:

Explanation on static variables and functions.

Static functions are indeed not required because they only encapsulate visibility.

For variables it is both life time and visibility. Life time needs to be supported given the scenarios in the above explanation. Visibility could give conflicts with the MetaC external keyword. So declaring a variable static and external should not be possible.


On 6 June 2013 at 08:42 Dario Nesi commented:

syntax updated


On 6 June 2013 at 15:43 Daco Harkes commented:

Implemented and mapping to base-c implemented. Type-checking and mapping from Statemachine pending (other issues).


On 6 June 2013 at 15:43 Daco Harkes closed this issue.

Log in to post comments