^((super new) initialize)

Gary McGovern garywork at lineone.net
Sun Aug 19 13:06:15 UTC 2001


> Ned Konz

> Object subclass: #Person
>   instanceVariableNames: 'name'
>   classVariableNames: ''
>   poolDictionaries: ''
>   category: 'MyStuff'
>
> Gary, is this what you did?
>
Yes, that's what I did. But I got some conflict with system variables 'name'
and had to use personName. 'name' wouldn't be accepted.

Because of overriding the 'new' method for my class, when I went to write
something like 'dates := OrderedCollection new' the new method wouldn't work

I've discarded that image now, so cannot look at it again. It was quite
embarrassing to see my image in such a pathetic state.

I seemed to be doing everything right and didn't notice my mistake.

(By the way, using the parenthesis is commonly used in my course to aid
readability. Now, I wouldn't want to give my examiner any openings to mark
my scores down would I :o) ).

Regards,
Gary





More information about the Squeak-dev mailing list