FAQ

On Tue Feb 23 08:43:05 2010, masak wrote:
<masak> std: sub circumfix:<| |>() {}; |*|
<p6eval> std 29806: OUTPUT«===SORRY! [...] 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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-compiler @
categoriesperl
postedJul 15, '10 at 12:22p
activeJul 15, '10 at 12:22p
posts1
users1
websiteperl6.org

1 user in discussion

jnthn@jnthn.net via RT: 1 post

People

Translate

site design / logo © 2021 Grokbase