" Name is already defined ->" question?
Raab, Andreas
Andreas.Raab at disney.com
Tue May 2 21:09:36 UTC 2000
Because 'name' refers to the 'name of the class' you're writing the instance
creation method in. It's a quite common mistake to use 'name' in any class
method (and even to store something meaningless in it).
- Andreas
> -----Original Message-----
> From: jchludzinski [mailto:jchludzinski at mail.worldkey.net]
> Sent: Tuesday, May 02, 2000 1:41 PM
> To: squeak at cs.uiuc.edu
> Cc: recipient list not shown
> Subject: " Name is already defined ->" question?
>
>
> I am try to define/write an instance creation method. The
> class has 2 instance variables: 'engine' & 'name'. There are
> getters and setters for both. When I try to define a
> creation method as:
>
> 'name: name'
>
> I get:
>
> 'name: Name is already defined ->name'
>
> When I try to define a creation method as:
>
> 'engine: engine'
>
> it accepts it. WHY? Any suggestions?
>
> ---John
>
More information about the Squeak-dev
mailing list
|