Re: Phix : what's unrecognised
- Posted by petelomax Jan 24, 2024
- 992 views
I added/allowed the use of "local" as an optional logical counterpart to "global" in 1.0.2.
Minimal impact on legacy code, apart from some uses of the identifier "local" now being prohibited,
and in particular you can no longer assign it in top-level code (but you still can within a routine).
In my copy of IDE.exw, slightly different from yours, I changed "local" to "plocal" (you could use "local_property" if preferred)
on lines 3618, 4395, 9826/7, 10303, 11506, 12047/9/51 (so 9 times in total).
Maybe I should prohibit the declaration of a variable named "local", and make it a proper (but still optional) keyword...
Alternatively/additionally I could easily add with/without local, without being the default, so such issues don't occur...
PS IDE.exw rejected my IDE.cfg, so I've just fixed get() and value() to cope with backtick strings and (eg) 100'd' - let me know if you need that.

