Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.kei.com!wang!news
From: zviki@techunix.technion.ac.il (Cohen Zviki)
Subject: VW2.0 - Using class instance variables (HELP!!!)
Organization: Technion, Israel Institute of Technology
Date: Fri, 3 Feb 1995 09:20:23 GMT
Message-ID: <D3F39z.Jsx@discus.technion.ac.il>
Sender: news@wang.com
Lines: 31

	Hello !

	I'm currently using VW2.0 and I ran into some kind of problems when
using class instance variables. My goal is to use a variable that will be 
shared by all the instances of the class (for read only) but it will vary
among different subclasses of the class. I understand this is the ways to do
this (e.g., the famous dictionaries example).

	I declared the variables by clicking "class" in the browser and 
entering it there in the class instance definition (or whatever you might call
that). The problem is, I can use the variable, but I cannot get it to change
for every subclass I make. The first subclass which is initialized sets the 
value and the other initializations of the subclasses (and father class) 
doesn't change the value anymore. 

	Can anyone help ?


--
------------------------------------------------------------------------------
Zviki Cohen
                                    Computer Science student 
Macintosh Developer                 Technion - Israel Institute of Technology

		E-mail:	zviki@tx.technion.ac.il


  " If I were you I'd really run from me         
    I'd really really wish that I were you "

			Circus Envy - Monster - R.E.M
