This is the mail archive of the guile@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] |
>> My understanding of CLOS-like systems is that a generic function is >> a real object. In that case, the setter would also be a generic function. >> Alternatively, a getter-with-setter pair is an object containing >> *two* generic functions. To add a new method to the getter, do plain: >> (define-method X (...) ...) >> to add a new method to the setter, do: >> (define-method (setter X) (RHS ...) ...) > >Yes, this was the second alternative in my first letter. We'll settle >for that. Wouldn't it be... (define-method setter ((X <procedure>) (V <sometype>) (O <someclass>) .....)