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/XLcJTzbXjyPrefix -- requires an argument, but no valid > term founda/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 -> ba -> 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/geTg5LpEb8Prefix -- requires an argument, but no valid > term founda/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 foundat <tmp>:1------> m<--\>> { "$^a -> $^b\n" }; [~] 'a' X[--⏏>] <b c> # RT #126238 expecting any of: prefix» -- Will "Coke" Coleda