[Slots] add ClassVariableTest and a fix: copy over value when changing a Class Var definition
Tiny improvement⦠Imagine a class where the class var TT is already set to 5. Object subclass: #TT slots: { } classVariables: { #TT } category: âPlayGround' now changing that to a special ClassVariable that saves its value not in the binding but somewhere else (like ExampleClassVariable), the value should be copied over on class modification: Object subclass: #TT slots: { } classVariables: { #TT => ExampleClassVariable } category: âPlayGround' this is now fixed with https://pharo.fogbugz.com/f/cases/15112/add-ClassVariableTest-and-a-fix-copy... - tests - when changing a class var to a new kind, make sure to copy the existing value over. Marcus
- tests
More tests⦠https://pharo.fogbugz.com/f/cases/15120/PropertySlot-test-for-installing-two... - test testCreateClassWithTwoPropertySlots - make sure that all PropertySlots share the baseSlot - add same API to Layout as on class, but here taking hidden slots into account. #definesSlot #definesSlotNamed: #hasSlot: #hasSlotNamed: #slotNamed: Marcus
participants (1)
-
Marcus Denker