# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #100828]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=100828 >


<felher> masak: k, thnx :) i'll do it as soon as i get postfix working
with my relay-host :)
<masak> nom: sub postfix:<o.O>($value) { say "$value? really!?" }; 42o.O
<p6eval> nom dc9ffc: OUTPUT«===SORRY!===␤Confused at line 1, near "42o.O"␤»
<masak> std: sub postfix:<o.O>($value) { say "$value? really!?" }; 42o.O
<p6eval> std 20ae3bd: OUTPUT«ok 00:01 127m␤»
<masak> who's right here?
<masak> niecza: sub postfix:<o.O>($value) { say "$value? really!?" }; 42o.O
<p6eval> niecza v10-39-g64c5778: OUTPUT«42? really!?␤»
<masak> seems STD.pm6 and Niecza are right.
*masak submits rakudobug
<masak> felher: your "get postfix working" comment just found us a rakudobug! :P
<felher> masak: :D!
<masak> nom: sub postfix:<!>($n) { [*] 1..$n }; say 5!
<p6eval> nom dc9ffc: OUTPUT«===SORRY!===␤Confused at line 1, near "say 5!"␤»
<masak> ok, so it's postfix ops in general that don't work yet.
<masak> b: sub postfix:<!>($n) { [*] 1..$n }; say 5!
<p6eval> b 1b7dd1: OUTPUT«120␤»
<masak> nom: our sub postfix:<!>($n) { [*] 1..$n }; say 5!
<p6eval> nom dc9ffc: OUTPUT«===SORRY!===␤Confused at line 1, near "say 5!"␤»
<masak> ...and it's not that. good.
<masak> nom: sub infix:<%%%>($a, $b) { $a / 2 + $b * 3 }; say 4 %%% 7
<p6eval> nom dc9ffc: OUTPUT«===SORRY!===␤Non-declarative sigil is
missing its name at line 1, near "% 7"␤»
<masak> ok, so it's not just postfix, it's operator definitions in general.
<masak> nom: sub infix:<+>($a, $b) { say "OH overloaded HAI" }; 2 + 2
<p6eval> nom dc9ffc: OUTPUT«OH overloaded HAI␤»
<masak> ...but it works with operators that already exist.

Reply via email to