NAME ^

classes/luafunction.pmc - Lua Function

DESCRIPTION ^

LuaFunction extends Parrot Sub to provide a class with the behaviour of the Lua Function type.

Overloaded Methods ^

STRING *name()

Return the string "function".

STRING *get_string()

INTVAL get_bool()

In Lua, both nil and false make a condition false; any other values makes it true.

So return always true.

PMC logical_not(PMC *dest)

Return always false.

Specific Methods ^

PMC *tonumber()

PMC *tostring()

AUTHORS ^

Francois Perrad


parrot