Re: Instance attributes collision

2006-02-13 Thread Luke Palmer
On 2/13/06, Yiyi Hu [EMAIL PROTECTED] wrote: For perl 6, Array and Scalar are in different namespace. So, class A { has $.a; has @.a }; what will A.new.a return by default? That's a compile time error. Both has declarations generate a method a, so it is a method conflict. Luke

Re: Instance attributes collision

2006-02-13 Thread Juerd
Luke Palmer skribis 2006-02-13 9:36 (+): That's a compile time error. Both has declarations generate a method a, so it is a method conflict. Doesn't normally double declaration end in the later masking/overriding the earlier declaration, with a warning, but not an error? I'd expect

Re: Typo Alert: Synopsis 5

2006-02-13 Thread Luke Palmer
On 2/13/06, Amos Robinson [EMAIL PROTECTED] wrote: I think there's a typo in synopsis 5, Indirectly quantified subpattern captures: [ (\w+) \: (\w+ \h+)* \n ]**{2...} I have a feeling the \h should be *, not +. It looks like you're right. Thanks, fixed. Luke

Re: Instance attributes collision

2006-02-13 Thread Luke Palmer
On 2/13/06, Juerd [EMAIL PROTECTED] wrote: Luke Palmer skribis 2006-02-13 9:36 (+): That's a compile time error. Both has declarations generate a method a, so it is a method conflict. Doesn't normally double declaration end in the later masking/overriding the earlier declaration,

Re: Instance attributes collision

2006-02-13 Thread Juerd
Luke Palmer skribis 2006-02-13 9:46 (+): class Baz { does Foo; does Bar; # does this count as double declaration? } I'd put composition and inheritance in a slightly different category than accessor *generators*. Juerd --

Implementation of :w in regexes and other regex questions

2006-02-13 Thread David Romano
Hello everyone, This is my first post to the actual mailing list and not to Google Groups (yeah, took me a bit to figure out they're not the same). I have a few questions about the rules in Perl 6, and hopefully I'm not repeating stuff that's already been brought up before. (I searched through the