Re: class interface of roles

2006-10-27 Thread TSa
HaloO, I wrote: role GenPointMixin { has Int $.x; has Int $.y; is extended { That should be spelled 'is also'. How does such an 'is also' block address the former class definition block? Is it OUTER::? Or SUPER::? The latter would mean that class extension is a kind of pseudo-inher

Re: class interface of roles

2006-10-27 Thread TSa
HaloO, I wrote: And finally the combined class class GenLocSquare is GenSquare does GenPointMixin {} I'm still pondering how one achieves method combination of the role's and the class' methods. Here are two ideas. The first is to use an 'is extended' part in the role that re-opens the cl