On Tue Feb 23 08:43:05 2010, masak wrote: > <masak> std: sub circumfix:<| |>() {}; |*| > <p6eval> std 29806: OUTPUT«[31m===[0mSORRY! [...] FAILED 00:01 11… > <TimToady> STD doesn't do circumfixes > <masak> oh :/ > <jnthn> alpha: sub circumfix:<| |>() {}; |*| > <p6eval> alpha 30e0ed: OUTPUT«Confused at line 10, near "|" [...] > <jnthn> aww > <jnthn> :-) > <masak> neither does Rakudo... > * masak submits rakudobug
Rakudo can do custom circumfixes now to some degree: > sub circumfix:<` `>($arg) { say "here, got $arg.perl()" }; `42` here, got 42 > sub circumfix:<{{ }}>($arg) { say "here, got $arg.perl()" }; {{42}} here, got 42 Trouble with the example in this ticket is that | is also a prefix operator, and seems to win. Not sure if that's wrong or right. But anyway, we've some basic support for this now. Given to moritz++ to spectest the bits we have, and let's open new tickets for specific issues that are agreed on #perl6 to get bugs. Thanks, Jonathan