![]() |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Due to the fact that all variables are initialized to 0, and that
many functions return 0 when failing, it's desirable to be able
to determine what kind of value type you actually have received.
Also, if you use the mixed
type it's virtually essential to be
able to test what the variable contains at times. For this purpose
there's a special test function for each type that will return
1 (true) if the tested value is of the asked for type, and 0 if not.
NB! These functions test the type of the value, NOT
the value itself in the sense of truth functionality. In other words
intp(0)
will always evaluate as true, as will
mappingp(([]))
.