guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strategy for supporting GOOPS based numeric types


From: Andy Wingo
Subject: Re: Strategy for supporting GOOPS based numeric types
Date: Sat, 26 Mar 2011 23:20:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Mark,

On Thu 10 Mar 2011 00:28, Mark H Weaver <address@hidden> writes:

> #define SCM_GNUMBERP(x) \
>   (SCM_STRUCTP (x) && (SCM_STRUCT_VTABLE_FLAGS (x) & SCM_CLASSF_NUMBER))
>
> scm_number_p is implemented as:
>
>   return scm_from_bool (SCM_NUMBERP (x) || SCM_GNUMBERP (x));

It's a late reply, but I just wanted to mention that I like this
approach.  Happy hacking!

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]