Philippe,
here is the other part, commenting your proposal on const/enum, actually I have some question to ask to the community
Another thing that would help create fast cachable lookups in the environment would be to have "const" variables: whose value can only be set once at the definition, but write-protected so that multiple further lookups are not needed and that allows the compiler to optimize the generated code, by finding constant common expressions (evaluated only once, their value being kept eitheir in
:
Why it has been decided to use <close> as a postfix attribute rather than a keyword such as local?
A declaration/initialization like "const a = 1" looks cleaner than "local a <close> = 1"
About fast lookups I had a similar thought: if a table can be marked read-only, then look-ups on that table could be done at compile time rather than run time.
Has it been discussed the use of 'const' to mark tables as read-only?
Andrea