traits question

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

traits question

Sophie424
Can method names be re-mapped when I apply a trait? How?

Also, if yes, can the same trait be used multiple times to the came class
(with different mappings)?

Thanks - Sophie



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: traits question

stephane ducasse

On 6 nov. 07, at 19:39, itsme213 wrote:

> Can method names be re-mapped when I apply a trait? How?

you can use aliasing but it just introduce a new name for the method  
(it is not a rename
sends are not renamed).

> Also, if yes, can the same trait be used multiple times to the came  
> class
> (with different mappings)?

No

>
> Thanks - Sophie
>
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners