[844] in Coldmud discussion meeting

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

Re: inheritance

daemon@ATHENA.MIT.EDU (Thu Nov 30 15:53:30 1995 )

Date: Thu, 30 Nov 1995 13:33:09 +0000 ()
From: Brandon Gillespie <brandon@tombstone.sunrem.com>
To: coldstuff@tombstone.sunrem.com
In-Reply-To: <Pine.LNX.3.91.951130153431.257A-100000@Green.ssnet.com>

On Thu, 30 Nov 1995, Dave Wallace wrote:
> I have noticed that children inherit their parents parameter names,but 
> not the _values_ of these parameters, is there some way to have this 
> without specificly initializing the child with $object.init_ and a bunch 
> of functions to access the parent's values? This seems a little messy to 
> me so perhaps there is something I am missing here.

Encapsulation.  MOO breaks encapsulation by allowing one to inherit 
values, which is incorrect.  Cold is simply more strict about it.  It 
does cause problems when trying to code designes based off the MOO model, 
but once you get used to how it works in relation to the Cold model, it 
is actually a nice addition.

-Brandon Gillespie