Is Method
List of: Discussion Topic
Subjects: Scheme Interface
Contents: Scheme Support

The is method returns a logical TRUE if an object is of this type, and it determines the type when some arguments may contain any of several different types. These methods are named is followed by an underscore and the name of the type. Example 3-10 determines if an object is a bounded_curve.

// Purpose---Determine if a Scheme object is a bounded_curve.

logical is_Scm_Bounded_Curve(ScmObject p)
{

ENTER_FUNCTION("is_Scm_Bounded_Curve");

return TYPE(p) == T_BndCrv;
}

Example 3-10. Determining the Type of a Scheme Object
PDF/SCM/03EXTSC.PDF
HTM/DATA/SCM/SCM/03EXTSC/0016.HTM