The design docs indicate that square brackets need to be used, which works with
rakudo:
constant $foo="+"; say &infix:[$foo](3, 4)
rakudo-moar 4b1df7: OUTPUT«7»
So, this is closable with test?
On Mon Sep 19 20:55:21 2011, coke wrote:
> On Tue Mar 30 08:24:48 2010, moritz wrote:
> > The &infix:{$foo} form is now gone from the spec, but &infix:($foo)
> > should work, afaict.
>
> 23:54 < [Coke]> rakudo: my $foo="+";&infix:($foo)(3,4).say
> 23:54 <+p6eval> rakudo cbdd9b: OUTPUT«===SORRY!===
On Tue Mar 30 08:24:48 2010, moritz wrote:
> The &infix:{$foo} form is now gone from the spec, but &infix:($foo)
> should work, afaict.
23:54 < [Coke]> rakudo: my $foo="+";&infix:($foo)(3,4).say
23:54 <+p6eval> rakudo cbdd9b: OUTPUT«===SORRY!===Symbol '&infix:($foo)' not
predecla
# New Ticket Created by Geoffrey Broadwell
# Please include the string: [perl #68024]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=68024 >
Allow the name of an operator to be specified dynamically without using
eval to ha