Re: string_exec()
- Posted by katsmeow Mar 05, 2015
- 2107 views
Since Euphoria can see it's own variables and values (trace does this), it should be straight forward to do this as well:
string_exec("5+4-myVariable")
That's true, but trace has pointers to the internal structure to work with. It's not that the symbol table isn't available, but scopes make this somewhat complicated.
Unless you drop the new IL into a situation where the scope is already defined and limited, see http://openeuphoria.org/forum/m/127270.wc
Right, but that's using all new stuff, not trying to look stuff up. As I said, my preference is to keep that stuff sandboxed but allow integration points to be defined.
Matt
Would it be easy to call the existing routines, slightly modified, as jimcbrown mentions, and use them in an include with the new top-level option of "include nothing" or "inherit nothing" or something more (mild and controllable), to make the desired clean sterile environment?
Kat