mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-30 17:00:23 +02:00
Allocating an instance of a class with a #:class or #:each-subclass slot allocation should not re-initialize the class-allocated slot. In Guile 1.8, this worked by effectively doing a slot-bound? within %initialize-object. In Guile 2.0 we instead initialize the slot when it is allocated -- in compute-get-n-set. * module/oop/goops.scm (compute-getters-n-setters): Don't set an init-thunk for class-allocated slots. (compute-get-n-set): Initialize class-allocated slots here, if an init-thunk or init-value are present. * test-suite/tests/goops.test ("#:each-subclass"): Add test. |
||
---|---|---|
.. | ||
ice-9 | ||
language | ||
oop | ||
rnrs | ||
scripts | ||
srfi | ||
sxml | ||
system | ||
texinfo | ||
web | ||
Makefile.am | ||
rnrs.scm | ||
statprof.scm | ||
texinfo.scm |