On Thu Oct 01 09:21:34 2015, cognominal wrote:
> LTM does not seem to apply within metaoperators, or does not take new
> operators in account.
> Discussion http://irclog.perlgeek.de/perl6/2015-10-01#i_11304291
> 
> cognominal      m: my token infix:sym<--\>> { "$^a -> $^b\n" }; [~]
> 'a' X[-->] <b c>
> camelia rakudo-moar 92be57: OUTPUT«5===SORRY!5=== Error while
> compiling /tmp/XLcJTzbXjy␤Prefix -- requires an argument, but no valid
> term found␤a/XLcJTzbXjy:1␤------> 3m<--\>> { "$^a -> $^b\n" }; [~] 'a'
> X[--7⏏5>] <b c>␤    expecting any of:␤        prefix␤»
> moritz  aka "no" :-)
>         m:  sub arrow { "$^a -> $^b\n" }; [~] 'a' X[&arrow] <b c>
> camelia rakudo-moar 92be57: ( no output )
> cognominal      m:  sub arrow { "$^a -> $^b\n" }; say [~] 'a'
> X[&arrow] <b c>
> camelia rakudo-moar 92be57: OUTPUT«a -> b␤a -> c␤␤»
> lichtkind       moritz: something like problem-solver-tutorial ? so we
> have still ame spaces for other tuts
> lizmat  m: my token infix:sym«-->» { "$^a -> $^b\n" }; [~] 'a' X[-->]
> <b c>
> camelia rakudo-moar 92be57: OUTPUT«5===SORRY!5=== Error while
> compiling /tmp/geTg5LpEb8␤Prefix -- requires an argument, but no valid
> term found␤a/geTg5LpEb8:1␤------> 3ym«-->» { "$^a -> $^b\n" }; [~] 'a'
> X[--7⏏5>] <b c>␤    expecting any of:␤        prefix␤»
> lizmat  cognominal: feels like a rakudobuggable thing to me

FYI, same error with:

18:30 < [Coke]> m: sub infix:sym<--\>> { "$^a -> $^b\n" }; [~] 'a' X[-->] <b c>
                # RT #126238
18:30 < synopsebot6> Link:
                     https://rt.perl.org/rt3//Public/Bug/Display.html?id=126238
18:30 <+camelia> rakudo-moar 998e2b: OUTPUT«===SORRY!=== Error while compiling
                 <tmp>␤Prefix -- requires an argument, but no valid term
                 found␤at <tmp>:1␤------> m<--\>> { "$^a -> $^b\n" }; [~] 'a'
                 X[--⏏>] <b c> # RT #126238␤    expecting any of:␤
                 prefix␤»

-- 
Will "Coke" Coleda

Reply via email to