is_integer
function reads:
global function is_integer(object i) if not integer(i) then return FALSE else return integer(i) end if end function
routine_id
of the checking routine. In the above example this
would read as:
constant INTEGER = routine_id("is_integer")Make the constant global if you wish to pass it on!
If the checking routine is, say is_mytype
then define
mytype
as
type mytype(object mt) return is_mytype(mt) end typeLikewise make the type global if you wish to pass it on!