Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support initializers for objects with static storage type #68

Closed
ShivamSarodia opened this issue Apr 7, 2018 · 2 comments
Closed

Support initializers for objects with static storage type #68

ShivamSarodia opened this issue Apr 7, 2018 · 2 comments
Labels

Comments

@ShivamSarodia
Copy link
Owner

For example

int main() {
   static int i = 3;
   printf("%d\n", i);
}

or

static int i = 3

Today, these examples raise a NotImplementedError. These initializers are different from local variable initializers: for local variables, initialization involves outputting an additional IL command, but for initializing objects with static storage,

@ShivamSarodia
Copy link
Owner Author

May pair well with #46

@ShivamSarodia
Copy link
Owner Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant