typeof

ds2.1.1/lib/doc/efun/all/typeof · 451 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

typeof - return the type of an expression

int typeof( mixed var );

Return the type of an expression.  The return values are given in
the driver include "type.h".  They are:

<pre>
INT             "int"
STRING  	"string"
ARRAY   	"array"
OBJECT  	"object"
MAPPING         "mapping"
FUNCTION        "function"
FLOAT           "float"
BUFFER          "buffer"
CLASS		"class"
</pre>

 Tim Hollebeek  Beek@ZorkMUD, Lima Bean, IdeaExchange, and elsewhere

Site Stats

Snippets: 1791
Codebases: 571