Definition: object identifier
-- or --
integer i = object(object x)
Description: This serves to define the object type.
You can also call it like an ordinary function to test if x is of type object.
This will always be true for all legal values of x, be that integer, atom, string, or sequence, so object() will always return 1, except when x is unassigned.
Comments: All predefined and user-defined types can also be used as functions to test if a value is legal for that type.
In previous versions of phix, object(x) would crash when x was unassigned, but now yields 0.
? object({1,2,3})   -- always prints 1
See Also: atom, integer, sequence, string, Core Language