If it works the same as sprintf("%t"...) then it will call the _sprintf lfun instead of giving the true basic type for objects. Since most _sprintf's returns a %O-like string regardless of the flag, it doesn't quite fulfill this purpose. This can probably be debated, but I think it'd be more useful if basetype() wasn't possible to fool with _sprintf.
/ Martin Stjernholm, Roxen IS
Previous text:
2002-11-28 20:38: Subject: CHANGES line of the day
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