You should change your #tracks method to

tracks
  ^tracks ifNil:[tracks:=OrderedCollection new]

or 

tracks
   tracks ifNil:[self initializeTracks]
   ^tracks


initializeTracks
  tracks:=OrderedCollection new.

Then you don't have to worry about the implementation of #tracks: changing
in the future if you want to do something else with/in it. 






--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to