mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-04 03:00:20 +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. |
||
---|---|---|
.. | ||
goops | ||
ChangeLog-2008 | ||
goops.scm |