The last 2 messages I got from p6l were duplicated, the ones from
Yiyi and chromatic, but the message is only addressed to the list
once, and not addressed to any other recipients. The problem seems
server side, as both my email box and the archive at
http://nntp.perl.org/group/perl.perl6.lang
On Sunday 12 February 2006 17:11, Yiyi Hu 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?
>
> An Error? or Scalar has a higher priority?
Seems like a compile-time warning (at least) to me.
-- c
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?
An Error? or Scalar has a higher priority?
Thanks,
xinming
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 +.
Thomas Sandlass wrote:
> > > or maybe
> > >
> > > method Dog.bark () { ... }
> >
> > Yes that works too.
>
> Shouldn't that read Dog::bark? Why the dot?
Because I'm not 100% with the proper syntax of things. The intent was
to add a bark() method to Dog during runtime.
--
Jonathan "Dataweaver"
Stevan Little wrote:
> ^Dog is an instance of the MetaClass, while Dog (no ^ sigil) is the
> "class" (actually it's a prototypical instance of the class which the
> metaclass ^Dog describes, but you dont really need to know that to use
> it).
>
> ^Dog.can(bark) # false
> Dog.can(bark) # true