Very nice! Next would be an example of how to specialize a slot :)
Doru On Wed, Jun 25, 2014 at 2:06 PM, Marcus Denker <[email protected]> wrote: > Hi, > > Already in Pharo3 all instance variables are described using meta-objects > (so called slots). > > To make it easier to access the slots, I added some simple methods to > ClassDescription on 4.0 043, > Now we can do e.g.: > > Context slots > Context allSlots > > Point hasSlotNamed: #x > Point slotNamed: #x > > e.g. the slot “x” of Point knows how to reflectively read itself from a > point: > > (Point slotNamed: #x) read: 5@3 > > ==> 5 > > Marcus > -- www.tudorgirba.com "Every thing has its own flow"
