Interpret a string as S-Lang code
eval (String_Type expression, [,String_Type namespace])
The eval function parses a string as S-Lang code and executes the
result. If called with the optional namespace argument, then the
string will be evaluated in the specified namespace.
This is a useful function in many contexts such as dynamically
generating function definitions where there is no way to generate
them otherwise.
if (0 == is_defined ("my_function"))
eval ("define my_function () { message (\"my_function\"); }");
- slangrtl
-
__get_defined_symbols,
__get_reference,
__is_initialized,
_apropos,
_function_name,
autoload,
byte_compile_file,
evalfile,
getenv,
import,
is_defined,
make_printable_string,
require,
set_slang_load_path
|