NAME ^

pmc/luaboolean.pmc - Lua Boolean

DESCRIPTION ^

LuaBoolean extends LuaAny to provide a class with the behaviour of the Lua Boolean type.

The value is stored as an Integer.

Methods ^

void init()

Initializes the Boolean with a default value of false.

PMC new_from_string(STRING *rep)

Class method to construct an Boolean from the string representation rep.

STRING *name()

Return the string "boolean".

PMC *clone()

Creates and returns a clone of the scalar.

INTVAL get_integer()

Returns the integer value of the Boolean.

STRING *get_string()

Return the string "true" or "false".

INTVAL get_bool()

Returns the boolean value of the Boolean.

void set_integer_native(INTVAL value)

void set_bool(INTVAL value)

void set_pmc(PMC *value)

Sets the value of the boolean to the value in *value.

void freeze(visit_info *info)

Used to archive the boolean.

void thaw(visit_info *info)

Used to unarchive the boolean.

non-Vtable Methods ^

INTVAL is_equal(PMC *value)

Specific Methods ^

PMC *rawequal(PMC *value)

AUTHORS ^

Francois Perrad.

Klaas-Jan Stol.


parrot