User Tools

Site Tools


at:tutorial:reflection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
at:tutorial:reflection [2008/11/06 15:25]
elisag
at:tutorial:reflection [2008/11/06 15:36]
elisag
Line 121: Line 121:
 </code> </code>
  
-In the code above, the closure passed to ''mirroredBy:'' is a //mirror construction closure//. This closure is applied to a new, empty mirage object and it is expected that it returns a new mirror that reflects upon this mirage. When the mirror is constructed, the object initialization closure is executed.+In the code above, the closure passed to ''mirroredBy:'' is a //mirror construction closure//. This closure is applied to a new, empty mirage object and it is expected that it returns a new mirror that reflects upon this mirage. When the mirror is constructed, the object initialization closure is executed. The picture below gives an overview of the different objects involved in the actor. 
 + 
 +{{:at:tutorial:meta-2.jpg|:at:tutorial:meta-2.jpg}} 
  
 When invoking the method ''m'' on the mirage, ''invoke'' will be invoked on the tracing mirror, causing the following behaviour: When invoking the method ''m'' on the mirage, ''invoke'' will be invoked on the tracing mirror, causing the following behaviour:
at/tutorial/reflection.txt · Last modified: 2010/11/16 16:32 by tvcutsem