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?

THanks!

 

----
peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
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

Attachment: signature.asc
Description: Message signed with OpenPGP using AMPGpg

Reply via email to