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
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
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
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,
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
--
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