User Tools

Site Tools


at:tutorial:objects

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
at:tutorial:objects [2007/07/03 09:57] jorgeat:tutorial:objects [2007/07/04 16:25] jorge
Line 118: Line 118:
  
 A message sent to an object using the ''^'' symbol (e.g. to the parent object in the example above) will start the method lookup in this object (and its parents) and then execute the method body in the lexical scope of the message sender (''self'' is bound to the message sender). A message sent to an object using the ''^'' symbol (e.g. to the parent object in the example above) will start the method lookup in this object (and its parents) and then execute the method body in the lexical scope of the message sender (''self'' is bound to the message sender).
 +
 +<note important>
 +The ''^'' delegation operator does not have the same semantics as the ''.'' (dot) notation to send messages to ''super''. The ''.'' notation will not only start the method lookup in the object bound the ''super'' field but also bind the ''self'' pseudo variable to this object.
 +</note>
  
 ===== Encapsulation ===== ===== Encapsulation =====
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem