# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65878] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65878 >
<dakkar> rakudo: sub infix:<R>($a,$b) { $a ~ '-' ~ $b }; sub infix:<RR>($a,$b) { $a ~ '_' ~ $b }; say 'x' R 'y'; say 'x' RR 'y'; <p6eval> rakudo e6b463: OUTPUT«x-yx_y» <dakkar> now, apart from "don't do that", what should happen? <masak> dakkar: "don't do that" only applies after you've found out that what happens is really not what you want. :) <dakkar> masak: fair enough. the general question is: what should P6 do when meta-generated operators clash with user-defined subs? I *think* rakudo is doing a sensible thing, btw <masak> dakkar: me too. <jnthn> dakkar: Your definition just happens later and wins atm, but it's a little more ty accident than it perhaps should be. <masak> depends on whether the auto-defined RR is considered a real sub. then it should perhaps complain. <jnthn> Well, it's a real sub. Question is if we make it a multi... <jnthn> But in that case we woulda got a failure here. <jnthn> I'm not sure. The spec may have answers. <jnthn> But I don't remember seeing any. <dakkar> jnthn: about the meta-operator collision thing, S03 says that you can't modify with '!' forms that start with '!', and you can't modify with '=' forms that end with '=' <jnthn> dakkar: Ah, OK, so should probably be an error or some thing for those. * masak submits rakuodbug