Skip Menu |
Report information
Id: 70922
Status: resolved
Priority: 0/
Queue: perl6

Owner: moritz <moritz.lenz+perl [at] gmail.com>
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] The precense of an overloaded postcircumfix:<{ }> operator causes Rakudo to emit variable redeclaration false positives
Date: Sun, 29 Nov 2009 20:51:09 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 260b
<masak> rakudo: class A { method postcircumfix:<{ }>() {} }; my &r = { my $a }; if 0 { if 0 { my $a } } <p6eval> rakudo 7347ec: Redeclaration of variable $a␤ * masak submits rakudobug <jnthn> masak: wow, nicely golfed <masak> jnthn: it's a really wonky bug.
Download (untitled) / with headers
text/plain 292b
<masak> rakudo: class A { method postcircumfix:<{ }>() {} }; my &r = {;}; if 0 { if 0 { my $a } } <p6eval> rakudo 7347ec: Redeclaration of variable $a␤ <masak> this is worse than I first thought. <masak> now there are not even two declarations of the variable. * masak amends the RT ticket
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 453b
On Sun Nov 29 12:25:14 2009, masak wrote: Show quoted text
> <masak> rakudo: class A { method postcircumfix:<{ }>() {} }; my &r = > {;}; if 0 { if 0 { my $a } } > <p6eval> rakudo 7347ec: Redeclaration of variable $a␤ > <masak> this is worse than I first thought. > <masak> now there are not even two declarations of the variable. > * masak amends the RT ticket
Seems in latest Rakudo this is no longer a problem; giving to moritz++ for spectests. Thanks, Jonathan
Tested in t/spec/S06-operator-overloading/methods.t.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org