This is the mail archive of the 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: setf.scm

Per Bothner <> writes:

> 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.

> This is of course hand-waving, since the specifics depend on the actual
> object system used.

This will fit well into Goops.