Method typeof()


Method typeof

type typeof(mixed expression)

Description

Return the compile-time type for the expression.

Parameter expression

Expression for which the type is to be returned.

This is similar to _typeof(), but returns the type that the type checker has derived for the expression. The expression is NOT evaluated.

Returns

Returns the derived type for the expression.

Note

typeof is not a function, but a special form. It is thus not valid to pass as a function.

See also

_typeof()