This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: GOOPS Debian packages
- To: Miroslav Silovic <silovic at zesoi dot fer dot hr>
- Subject: Re: GOOPS Debian packages
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 06 Apr 2000 16:07:55 +0200
- Cc: Craig Brozefsky <craig at red-bean dot com>, guile at sourceware dot cygnus dot com, djurfeldt at nada dot kth dot se
- Cc: djurfeldt at nada dot kth dot se
- References: <E12cnIN-00041O-00@mdj.nada.kth.se> <87og7o5cct.fsf@piracy.red-bean.com> <xy7itxwulmu.fsf@mdj.nada.kth.se> <7e8zyrsc4a.fsf@zesoi.fer.hr>
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.