my new method is skipped

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

my new method is skipped

Fernando Rodríguez
Hi,

I defined a new method like this:
new
Transcript show: 'Calling my new'.
^ super new initialize

However, it's always skipped. :-?  I did accept everything before
trying it.

What might be causing this? O:-)

Thanks


Reply | Threaded
Open this post in threaded view
|

Re: my new method is skipped

Udo Schneider
Fernando,

I assume you created a class first and defined #new for this class, correct?

If this is the case please doublecheck whether you defined #new on the
instance or the class side; it has to be a class method.

CU,

Udo


Fernando wrote:

> Hi,
>
> I defined a new method like this:
> new
> Transcript show: 'Calling my new'.
> ^ super new initialize
>
> However, it's always skipped. :-?  I did accept everything before
> trying it.
>
> What might be causing this? O:-)
>
> Thanks


Reply | Threaded
Open this post in threaded view
|

Re: my new method is skipped

Fernando Rodríguez
On Thu, 02 Dec 2004 14:09:09 +0100, Udo Schneider
<[hidden email]> wrote:

>Fernando,
>
>I assume you created a class first and defined #new for this class, correct?
>
>If this is the case please doublecheck whether you defined #new on the
>instance or the class side; it has to be a class method.

Aaaarrrggghh!!! You're right, thanks. O:-)