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

Non-static local arrays can't be initialized. #27

Open
pzembrod opened this issue May 26, 2021 · 0 comments
Open

Non-static local arrays can't be initialized. #27

pzembrod opened this issue May 26, 2021 · 0 comments

Comments

@pzembrod
Copy link
Owner

Currently the words >inittype and (init$ in parser.fth:800-810 encode a rule that forbids array initializers for local non-static arrays.
Reason for my decision for this way back was probably this: To implement array initializers for stack local variables would require a memcopy operation whereas static arrays can be initialized in the global initial static var initialization; I probably wanted to avoid the need for the memcopy operation.
To be decided how this should be handled going forward, i.e. whether initializers of stack local arrays should be supported.

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