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: GOOPS Debian packages


Miroslav Silovic <silovic@zesoi.fer.hr> writes:

> Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> 
> > (for-each (lambda (slot-definition)
> >             (write ((slot-definition-reader slot-definition) obj) port))
> >   (class-slots (class-of obj)))
> 
> I'm not sure that this particular expansion is a good idea if you want
> to allow slot-definition-reader to be a macro (in order to optimise
> the slot access).

`slot-definition-reader' will be a generic function, which will, in
most cases, be optimized by the method compiler into a low-level
byte-code for directly accessing the slot using a constant offset.

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