[Newbies] Returned values

Gary Dunn garydunnhi at gmail.com
Mon Feb 28 20:06:44 UTC 2011


While studying DBus code I came across a method that appears to set a class
variable and return the value. In DBusConnection>> sessionBus

  ^SessionBus := self getBus: 0 from: SessionBus

and SessionBus is a class variable. Why return the value? Why not have the
sender examine the value of SessionBus? Is it only a matter of style or is
this more efficient?

Gary Dunn
Open Slate Project
http://openslate.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110228/ce109d7b/attachment.htm


More information about the Beginners mailing list