some newbie questions about synopsis 5

2006-02-15 Thread H. Stelling
Hello, I've stumbled upon Perl6 a couple of weeks ago and I'm really looking forward to seeing the finished product. Currently, I'm trying to implement a perl-like rules module for Python, and I've got some questions which I think aren't covered in the Synopsis or anywhere else I looked, mostly

Re: Instance attributes collision

2006-02-15 Thread Rob Kinyon
On 2/14/06, Stevan Little [EMAIL PROTECTED] wrote: I think that the metaclass (stored in the pseudo-lexical $::CLASS) should create a number of anonymous roles on the fly: role { multi method a (::CLASS $self) { ... } multi method a (::CLASS $self, Scalar $value) { ... }

Re: some newbie questions about synopsis 5

2006-02-15 Thread Patrick R. Michaud
On Wed, Feb 15, 2006 at 10:09:05AM +0100, H. Stelling wrote: - Capture numbering: /(a) [ (b) (c) (d) | (e) (f) ] (g)/ capture.t suggests something like $0$1 $2 $3$1$2$4, but I'm only guessing about the bit. Yes. In the following, / (a) [ (b) (c) | $5 := (d) $0 :=

Re: Instance attributes collision

2006-02-15 Thread Stevan Little
On 2/15/06, Rob Kinyon [EMAIL PROTECTED] wrote: On 2/14/06, Stevan Little [EMAIL PROTECTED] wrote: I think that the metaclass (stored in the pseudo-lexical $::CLASS) should create a number of anonymous roles on the fly: role { multi method a (::CLASS $self) { ... }