o basetype(foo) Returns a string with the basic type of foo as opposed to typeof(foo) that returns the actual type. Also available as sprintf("%t", foo).
?
/ Peter Bortas
Previous text:
2002-11-28 20:36: Subject: CHANGES line of the day
Actually sprintf("%t",x) gets converted to basetype(x) internally as an optimization, if anyone cared to know. The comparision to typeof isn't all that good, since basetype returns a string while typeof returns a type.
constant tre = typeof(3); tre fyra=4;
Compiler Error: 1:Bad type in assignment. Compiler Error: 1:Expected: { tre = int(3..3) } Compiler Error: 1:Got : int(4..4)
/ Martin Nilsson (hehe Torgny)