[826] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

protected and private object variables

daemon@ATHENA.MIT.EDU (Sat Oct 14 00:57:57 1995 )

Date: Fri, 13 Oct 1995 21:47:00 -0700 (PDT)
From: weber@tungsten.seattle.geoworks.com (Eric Weber)
In-reply-to: <9510140417.AA06850@smithfield.declab.usu.edu>
To: 869683 Gillespie Brandon James <brandon@smithfield.declab.usu.edu>
Cc: coldstuff@pippin.ece.usu.edu


First of all, I find the name "private" to be completely misleading.
Perhaps "global" or "shared" would be better?

Second, I think it is a very useful concept, and in fact something
very similar exists in smalltalk (the class variable).

Third, speaking as a purist, it does violate encapsulation at some
level, since method calls can now have side effects in a different
object.  Of course, all such effects would be to other methods with
the same definer, so they'd be somewhat controlled.

-- Eric