Newsgroups: comp.windows.news
Path: utzoo!utgpu!watserv1!watcgl!mud.waterloo.edu!bmacinty
From: bmacinty@mud.waterloo.edu (Blair MacIntyre)
Subject: InstanceVars and classes
Message-ID: <1991Jun2.192343.6719@watcgl.waterloo.edu>
Sender: news@watcgl.waterloo.edu (USENET News System)
Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada
Date: Sun, 2 Jun 1991 19:23:43 GMT
Lines: 33

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}
