cc64 icon indicating copy to clipboard operation
cc64 copied to clipboard

Non-static local arrays can't be initialized.

Open pzembrod opened this issue 3 years ago • 0 comments

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.

pzembrod avatar May 26 '21 19:05 pzembrod