On Sun Dec 14 02:15:27 2008, masak wrote: > The following doesn't parse in Rakudo r33860: > > $ perl6 -e 'class A { method x { say "OH HAI" } }; my $c = class is A > {}; $c.x' > Statement not terminated properly at line 1, near "{}; $c.x" > [...] > > I don't know if this is specced, but it seems kind of natural and > possibly useful.
It should be "my $c = class :: is A"; <bacek> std: class A {}; my $c = class is A {}; <p6eval> std 25359: OUTPUT«############# PARSE FAILED #############Malformed "class" declarationUnable to parse class definition at /tmp/we8jgLrwAj line 1:------> [32mclass A {}; my $c = class is [31mA {};[0m expecting traitFAILED 00:02 33m» <bacek> std: class A {}; my $c = class :: is A {}; <p6eval> std 25359: OUTPUT«ok 00:02 33m» -- Bacek