NAME ^

classes/eval.pmc - Dynamic code evaluation

DESCRIPTION ^

Eval extends Closure to provide eval-like dynamic code evaluation and execution.

Methods ^

void set_pointer(void *value)

Sets the pointer to the PackFile.

void *get_pointer()

Returns the pointer PackFile.

void destroy()

TODO - When this PMC gets out of scope it should destroy the attached PackFile.

void *invoke (void *next)

Invokes the PMC's code.

INTVAL get_integer_keyed(PMC *key)

Returns the pointer to the start of the PMC's code as an integer.

*key is ignored.

STRING *get_string()

Returns the PMC's code as a Parrot string.

HISTORY ^

Initial version by leo 2003/01/16.


parrot