On 11/8/05, Gaal Yahas <[EMAIL PROTECTED]> wrote:
> Wouldn't it be nice to be able to supply default values for instance
> variables right in the attribute declaration?
>
>      class Jabberwock {
>          has $.jaws  = "bite";
>          has $.claws = "catch";
>      }
>
>      my $scary = Jabberwock.new;
>      my $wimpy = Jabberwock.new(jaws => "chew", claws => "tenderly comb");

That is legal Perl 6.  The fact that it is not legal pugs is pugs's problem. :-)

Luke

Reply via email to