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

Single-assignment variables #4

Closed
sminnee opened this issue Aug 26, 2015 · 0 comments
Closed

Single-assignment variables #4

sminnee opened this issue Aug 26, 2015 · 0 comments

Comments

@sminnee
Copy link
Owner

sminnee commented Aug 26, 2015

Although mutable variables are something I'd like to stay away from initially, single-assignment variables should be supported, to do stuff like this:

main {
   x = [1,4,9,5];
   for(i in x) {
     printf("x[%i] = %i", i, x[i]);
   }
}

Once compiled, the printf should probably still refer directly to a const array.

@sminnee sminnee changed the title Single-assignment varaibles Single-assignment variables Aug 26, 2015
@sminnee sminnee closed this as completed Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant