Skip Menu |
Report information
Id: 125899
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



From: Carl Mäsak <cmasak [...] gmail.com>
Date: Tue, 25 Aug 2015 13:37:32 +0200
Subject: [BUG] Just-declared variable should be visible inside 'will <phaser>' block, but isn't in Rakudo
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 538b
<moritz> m: my $x will leave { "say $x" }; $x = 5 <camelia> rakudo-moar f7cfe9: OUTPUT«===SORRY!=== Error while compiling /tmp/HBm06yJTOm␤Variable '$x' is not declared [...] <moritz> huh? <moritz> that looks wrong <masak> looks like a bug to me. <masak> $x is declared at that point. <masak> moritz: want me to rakudobug it? <moritz> masak: yes please * masak does <masak> m: my $x will enter { say $x } = 2 <camelia> rakudo-moar f7cfe9: OUTPUT«===SORRY!=== Error while compiling /tmp/qLbm4QEvKz␤Variable '$x' is not declared [...]
Still reproducible (2017.11,HEAD(e5b660e))

On 2015-08-25 04:37:44, masak wrote:
Show quoted text
> <moritz> m: my $x will leave { "say $x" }; $x = 5
> <camelia> rakudo-moar f7cfe9: OUTPUT«===SORRY!=== Error while
> compiling /tmp/HBm06yJTOm␤Variable '$x' is not declared [...]
> <moritz> huh?
> <moritz> that looks wrong
> <masak> looks like a bug to me.
> <masak> $x is declared at that point.
> <masak> moritz: want me to rakudobug it?
> <moritz> masak: yes please
> * masak does
> <masak> m: my $x will enter { say $x } = 2
> <camelia> rakudo-moar f7cfe9: OUTPUT«===SORRY!=== Error while
> compiling /tmp/qLbm4QEvKz␤Variable '$x' is not declared [...]




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