[plt-scheme] Determining if scheme type is boolean

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Wed Jun 8 17:13:31 EDT 2005

Found it: SCHEME_BOOLP(). Seems not documented in 'Inside mzscheme' though.


Hans Oesterholt-Dijkema schreef:

>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Dear All,
>
> I'm trying to determine if a type of a given Scheme_Object to a
> C function is of type 'boolean', but SCHEME_FALSEP/SCHEME_TRUEP
> don't do their job good enough. In fact, if I give (seconds->date 42)
> to the function, it will yield true on SCHEME_TRUEP and thereby
> grant this different type status 'boolean'.
>
> What can I do about this? I really need to distinguish between boolean
> and other types in my function (mzgtk2-set-property).
>
> Best regards,
>
> Hans
>



Posted on the users mailing list.