On Fri 18 Jul 2008 23:48, "Maciek Godek" <[EMAIL PROTECTED]> writes:

> Hello,
> I'm looking for an efficient way to check the
> type of an SCM variable. I imagine that I
> could write something like:
> (define (type? x)
>   (cond ((integer? x) 'int)
>   (cond ((real? x) 'double)
> ...
> )

(oop goops)'s `class-of'

Andy
-- 
http://wingolog.org/


Reply via email to