This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SCM_VALIDATE_...



> If we plan to provide macros for the value oriented point of view we
> have to be careful:  When goops is integrated, any value based predicate
> may be broken as soon as someone adds an additional representation for a
> certain class of numbers.  Example:  A goops class that represents inexact
> reals by using floats, in addition to the current representation as
> doubles.  Suddenly we have a situation, where SCM_REAL_P and
> "real?"  behave differently, except we add a call to the corresponding
> generic dispatch routine to the macro's definition.
> 
> This is, obviously, a more general problem:  The whole macro stuff (as it
> is now) will only work for a certain 'built in' set of representations for
> everything, except every macro is extended by the corresponding generic
> function call.

Clearly, SCM_REAL_P should be implemented by invoking a real? generic
function, which the module adding these new representations can
define...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]