Hi,
Todays small improvement:
ExampleSlotWithDefaultValue now allows to set the default in the definition (it
was before just hard coding a value).
e.g.
Object subclass: #GG
slots: { #gg => ExampleSlotWithDefaultValue default: 5 }
classVariables: { }
category: ‘PlayGround'
When inspecting
GG new
—> the slot is initialised to 5.
https://pharo.fogbugz.com/f/cases/14991/ExampleSlotWithDefaultValue-allow-default-to-be-set-in-definition
- Slot: storeOn: calls printOn:
- PropertyBaseSlot: use mangeled name: #_propertyBaseSlot
- ExampleSlotWithDefaultValue: set default in definition
Marcus