Am 11.03.2017 um 04:57 schrieb sergio ruiz <sergio.rrd@gmail.com>:

I have a simple one, but i need to understand what is going on..

i have something like

Tree

with a class method

trees
^ trees ifNil: [OrderedCollection new]

i initially ran into trouble with it locking my image up because i wrote it as:

trees
^ self trees ifNil: [OrderedCollection new]

what is the semantic difference between these two calls?

The first one accesses the instance variable. The second one calls the method tress (same method) which results in an endless loop.

Norbert

THanks!