[comp.windows.news] InstanceVars and classes

bmacinty@mud.waterloo.edu (Blair MacIntyre) (06/03/91)

Is the InstanceVars dictionary used at all?  It doesn't appear so.  If
not, what the heck is the point of telling classbegin what your instance
variables are, since you just end up promoting them into your self
anyway in order to use them.  

If I do
/Blat ClassObject
dictbegin
	/biff /yes def
dictend
classbegin
...
	/biff? {
	    biff /yes eq {
		...
	    } if
	    ...
	} def
...
classend

the process executing this will die saying "biff" undefined.  Yet, the
whole point of using the dictbegin/dictend to create instance variables
is so that you can initialize them.

Am I missing something, or do I really have to initialize them (say, in
NewInit) regardless of whether I initialize them as above.  

Blair
-- 
Blair MacIntyre, Computer Graphics Lab
Dept. of Computer Science, University of Waterloo, Waterloo, ON, Canada, N2L3G1
{bmacintyre@{watcgl|violet|watdragon}}.{waterloo.edu|uwaterloo.ca}

bmacinty@mud.uwaterloo.ca (Blair MacIntyre) (06/03/91)

>>>>> On Sun, 2 Jun 1991 19:23:43 GMT,
>>>>> In message <1991Jun2.192343.6719@watcgl.waterloo.edu>,
>>>>> bmacinty@mud.waterloo.edu (Blair MacIntyre) wrote:

Blair> Is the InstanceVars dictionary used at all?  It doesn't appear so.  
Blair> [ meaningless drivel deleted ]

Ignore this.  I would have cancelled it, but it wouldn't let me (I'm
really me, dammit!)

A simple example shows it works, but it doesn't appear to in my larger
classes.  I'm looking for why ... (read: debugging)

Sorry about that.
 blair
--
Blair MacIntyre, Computer Graphics Lab
Dept. of Computer Science, University of Waterloo, Waterloo, ON, Canada, N2L3G1
{bmacintyre@{watcgl|violet|watdragon}}.{waterloo.edu|uwaterloo.ca}