|parrotcode: Lua Nil|
|Contents | Language Implementations | Lua|
pmc/luanil.pmc - Lua Nil
LuaNil provides a class with the behaviour of the Lua
Implementation is based on the Undef PMC.
LuaNil is no longer a singleton; this would be a problem,
as all uninitialized values in Lua are LuaNil.
If some value is assigned,
the LuaNil should morph into the correct type,
and so a new PMC is constructed anyway.
we may as well create a new PMC right away.
creating a new PMC from a singleton class is troublesome (if not possible?).
PMC *new_from_string(STRING *rep, INTVAL flags)
.const .LuaNil nil = "dummy"
STRING *get_string ()
Original code by Klaas-Jan Stol.