NAME ^

classes/luanumber.pmc - Lua Number

DESCRIPTION ^

LuaNumber extends Float to provide a class with the behaviour of the Lua Number type.

Overloaded Methods ^

STRING *name()

Return the string "number".

INTVAL get_bool()

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

So return always true.

AUTHORS ^

Original code by Klaas-Jan Stol.


parrot