Object Oriented Euphoria v1.2
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Dec 16, 2004
- 465 views
I've posted v1.2--source only for now. If I don't hear about any major problems, I'll upload translated executables to RDS tonight or tomorrow. http://www14.brinkster.com/matthewlewis/projects.html It fixes the binder bug, plus I added eval. From the docs: function eval( sequence code ) Returns 1 if parsing was successful, and the code was executed, or zero if the code had errors. You cannot have an eval() statement inside of another eval() statement. Code within an eval statement is treated like top level code, except that if you call eval from within a procedure, the toplevel code will be able to access any loop and private variables that are within scope. You can define procedures, functions and euclasses within an eval, and you can also include an entirely new file. Files included through eval will be dynamically added to the interactive debugger. Anything defined within an eval will only be in scope inside of another eval, except that you can set a routine_id so that dynamic routines may be called from outside of an eval: integer rid ok = eval( "procedure foo()\n" & " puts(1,\"foo!\n\")\n" & "end procedure\n" & "rid = routine_id(\"foo\")") call_proc( rid, {} ) function eval_error() Returns the text of a compile-time error that occured parsing the eval statement.