NAME ^

pmc/luauserdata.pmc - Lua Userdata

DESCRIPTION ^

LuaUserdata extends LuaAny to provide a class with the behaviour of the Lua Userdata type.

Overloaded Methods ^

void init()

Initializes the userdata.

void mark()

Marks the userdata as live.

void destroy()

Call finalizer and free the userdata.

STRING *get_string()

STRING *name()

Return the string "userdata".

PMC *clone()

void set_pmc(PMC *value)

PMC *get_attr_str(STRING *key)

void set_attr_str(STRING *key, PMC *value)

non-Vtable Methods ^

INTVAL is_equal(PMC *value)

The == operation. Compares reference (not in depth).

INTVAL cmp(PMC *value)

Specific Methods ^

PMC *get_metatable()

PMC *rawequal(PMC *value)

void set_metatable(PMC *meta)

AUTHORS ^

Francois Perrad.


parrot