typeid [function]
typeid( var )
returns the first 4 bits of the variable var
type flags, as int
- returns one of the values mapped to VT_NULL/VT_BOOL/VT_INT/VT_REAL/VT_STRING/VT_FUNC/VT_CFUNC/VT_OBJECT/VT_PTR/VT_THREAD
- this function is equivalent to sgs_ItemType in the C API
typeid( 5 ) == VT_INT; // returns 'true' typeid( [] ); // returns 7 / VT_OBJECT