MongooseWhere programmers kick back and build silly things together.

All help topics · Link to this topic

Showing help on 'toobj()'

Syntax: toobj (<value>) => OBJ

Converts the given MOO value into an object number and returns that object number. The conversions are very similar to those for `toint()' except that for strings, the number *may* be preceded by `#'.

toobj("34") => #34
toobj("#34") => #34
toobj("foo") => #0
toobj({1, 2}) -error-> E_TYPE