AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
isFunction (Object obj [, int count]) yoix.type
 
Returns 1 if obj is a Function and 0 otherwise. If the optional count argument is supplied the return value will only be 1 if obj is a Function that accepts count arguments.
 
 Example:   A NULL object that was declared to be a Function can be called with zero arguments, so the program
import yoix.*.*;

Function f;
Object   o;

printf("f=%O, isFunction(f)=%d\n", f, isFunction(f));
printf("o=%O, isFunction(o)=%d\n", o, isFunction(o));
prints
f=NULL:FUNCTION, isFunction(f)=1
o=NULL:OBJECT, isFunction(o)=0
on standard output.
 
 Return:   int
 
 See Also:   isArray, isBuiltin, isCallable, isComponent, isDatagramSocket, isDictionary, isDouble, isEdge, isEvent, isFile, isFont, 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.