| isCallable |
(Object obj [, int count]) |
yoix.type |
| |
Returns
1
if
obj
is a
Builtin
or
Function
and
0
otherwise.
If the optional
count
argument is supplied the return value will only be
1
if
obj
is a
Builtin
or
Function
that accepts
count
arguments.
A non-zero return value means that either
isBuiltin
or
isFunction,
but not both, will also return non-zero because the
Builtin
and
Function
types are mutually exclusive.
| |
| Example: |
A
NULL
object that was declared to be a
Builtin
or
Function
can be called with zero arguments, so the program
import yoix.*.*;
Function f;
Object o;
printf("f=%O, isCallable(f)=%d\n", f, isCallable(f));
printf("o=%O, isCallable(o)=%d\n", o, isCallable(o));
prints
f=NULL:FUNCTION, isCallable(f)=1
o=NULL:OBJECT, isCallable(o)=0
on standard output.
| | |
| Return: |
int
| | |
| See Also: |
isArray,
isBuiltin,
isComponent,
isDatagramSocket,
isDictionary,
isDouble,
isEdge,
isEvent,
isFile,
isFont,
isFunction,
isGraph,
isHashtable,
isImage,
isInt,
isLayoutManager,
isMatrix,
isNode,
isNumber,
isOption,
isParseTree,
isPointer,
isProcess,
isSecurityManager,
isServerSocket,
isSocket,
isStream,
isString,
isStringStream,
isThread,
isURL,
isVector
|
|
Yoix is a registered trademark of AT&T Inc.
|