^((super new) initialize)

Ned Konz ned at bike-nomad.com
Sat Aug 18 15:09:43 UTC 2001


On Saturday 18 August 2001 05:40 am, you wrote:
> On Sat, 18 Aug 2001 07:41:19 -0400 "Andrew C. Greenberg" <werdna at mucow.com> 
wrote:
> >> Also, in a class I couldn't declare the instance variable 'name'. I had
> >> to use personName instead.
> >
> >I'll wager that the superclass has a subclass with such an instance
> >variable.  Yes?
>
> I'm wondering if the questioner really meant that he tried to define 'name'
> as an instance variable on the class side. If so, 'name' is definitely
> used. Go to the class side of the browser for some class and choose 'inst
> var refs' from the menu on the class list to see the names that are already
> used by superclasses. 'name' is one of those and is defined on the instance
> side of Class.

But, given that he called it 'personName', it should have probably been an 
(non-class) instance variable...

That is, you'd probably want to define it as:

Object subclass: #Person
  instanceVariableNames: 'name'
  classVariableNames: ''
  poolDictionaries: ''
  category: 'MyStuff'

Gary, is this what you did?

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list