This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
at:tutorial:reflection [2008/09/15 18:00] tvcutsem |
at:tutorial:reflection [2008/11/06 15:36] elisag |
||
---|---|---|---|
Line 28: | Line 28: | ||
</ | </ | ||
- | The code excerpt presented above uses the mirror to // | + | The code excerpt presented above uses the mirror to // |
+ | |||
+ | {{: | ||
The code excerpt below shows how one can add and remove slots to and from an object, and how one can explicitly access values and invoke methods upon an object, reflectively: | The code excerpt below shows how one can add and remove slots to and from an object, and how one can explicitly access values and invoke methods upon an object, reflectively: | ||
Line 119: | Line 121: | ||
</ | </ | ||
- | In the code above, the closure passed to '' | + | In the code above, the closure passed to '' |
+ | |||
+ | {{: | ||
When invoking the method '' | When invoking the method '' |