Re: Euphoria's strengths
- Posted by jimcbrown (admin) Jan 12, 2015
- 1485 views
like access to the var table
I certainly wouldn't complain if someone came up with a patch to implement this in Euphoria.
It's just plain hard to do.
Really? Of course I'm looking at this from a purely Phix perspective, and apart from nested block scopes, I'd say this was reasonably trivial.
If one of those pesky fatal errors can print "i = 5" to an ex.err then the runtime can clearly map values/storage addresses and variables/names.
That's true if all you need is something like variable_id()/set_variable()/get_variable(), however ...
Unless you were expecting it to magic previously-undeclared variables out of thin air or suchlike.
I believe this is the level of access that eukat is asking for (in addition to being able to explicitly de-declare previously declared variables).
This is how it might go in Phix
Did I miss anything?
Not that I can see. Looks nice.