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

Reply via email to