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 revisionBoth sides next revision
at:tutorial:objects [2007/07/02 13:12] jorgeat:tutorial:objects [2007/07/02 13:15] jorge
Line 101: Line 101:
  
 ===== First-class delegation ===== ===== First-class delegation =====
-AmbientTalk provides an explicit delegation operator ''^'' as shown in the code below.+AmbientTalk provides an explicit delegation operator ''^'' shown in the code below.
  
 <code> <code>
-> def Point3D := extend: Point with: {+> def point3D := extend: point with: {
     def z := 0;     def z := 0;
-    def init(anX, aY, aZ) { +    def init(aX, aY, aZ) { 
-      super^init(anX, aY);+      super^init(aX, aY);
       z := aZ;       z := aZ;
     }     }
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem