[bug] Refactoring implement in doesn't handle self

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug] Refactoring implement in doesn't handle self

Tim M
I am trying to use the refactoring - implement in with the following code
snippet:

self season raceCarsAt: aStartingNumber put: self.

I get an error in the transcript:

Error: Season>>raceCarsAt:put: at line 1: cannot redefine pseudo variable


I think it might be trying to create the method with a parameter called self
(and hence it can't and so gives the error message). If it is this, it probably
should treat self as "aClass" for a parameter name.

Tim


Reply | Threaded
Open this post in threaded view
|

Re: [bug] Refactoring implement in doesn't handle self

Blair-2
"macta" <[hidden email]> wrote in message
news:[hidden email]...

>I am trying to use the refactoring - implement in with the following code
>snippet:
>
> self season raceCarsAt: aStartingNumber put: self.
>
> I get an error in the transcript:
>
> Error: Season>>raceCarsAt:put: at line 1: cannot redefine pseudo variable
>
>

Yes, there is a bug there - pseudo variables need special handling. We'll
fix in 6.03.

Thanks

Blair