On 11 Mar 2017, at 3:36 pm, Bernardo Ezequiel Contreras <vonbecmann@gmail.com> wrote:i think that in the first case you access an instance variable trees while in the second case you send a message trees to self that cause an infinite recursion.am i right?On Sat, Mar 11, 2017 at 12:57 AM, sergio ruiz <sergio.rrd@gmail.com> wrote:I have a simple one, but i need to understand what is going on..i have something likeTreewith a class methodtrees^ 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?THanks!----
peace,
sergio
photographer, journalist, visionaryPublic Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2 dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101 --Bernardo E.C.Sent from a cheap desktop computer in South America.