[827] in Coldmud discussion meeting
Re: protected and private object variables
daemon@ATHENA.MIT.EDU (Sun Oct 15 18:34:57 1995
)
Date: Sun, 15 Oct 1995 18:29:03 -0400 (EDT)
From: James C Deikun <jcdst10+@pitt.edu>
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
On Fri, 13 Oct 1995, 869683 Gillespie Brandon James wrote:
> From this, $foo_1,test starts as 0. I call $foo_1.test(1), and $foo_1,test
> becomes [1], because 'test in bar' gets the value of bar from $foo, rather
> than from $foo_1, because it is a private variable. If $foo_1 were to
> define another method, and attempt to access bar, it would not work (just
> as it should not).
>
> Is this something I should add?
Maybe, maybe not, but from the way you explained it, the names are
totally wrong. They should be 'instance' and 'class' variables, or
'child' and 'definer' variables if you want to be obnoxiously classless.
--
James "obnoxiously classless" Deikun
writer of wrongs * the fender of justice * guardian of the holy chow
******** Two wrongs don't make a right, but three lefts do. ********