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/18 18:28] jorgeat:tutorial:objects [2007/07/18 18:30] jorge
Line 168: Line 168:
 def Array := object: { def Array := object: {
   def elements := [];   def elements := [];
 +  def init(a) { elements := a; };
   def add(v) { elements := elements + [v]; self };   def add(v) { elements := elements + [v]; self };
   def collect: closure {   def collect: closure {
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem