On Thu Jun 11 09:25:45 2009, masak wrote:
> In Rakudo 86aeafb, a file with a user-defined operator sub runs fine,
> but fails with --target=parse:
> 
> $ cat factorial
> sub postfix:<!>(Int $n) {
>     [*] 1..$n;
> }
> say 5!;
> $ perl6 factorial
> 120
> $ perl6 --target=parse factorial
> Statement not terminated properly at line 5, near "!;\n"
> in Main (src/gen_setting.pm:0)

This works in latest Rakudo (when user defined operators were put back
into master, they were done differently, in a way that allows them to
work in --target=parse). Since this is Rakudo specific rather than a
Perl 6 level issue that would warrant a spec test, just resolving this.

Thanks,

Jonathan

Reply via email to