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


<Util> rakudo: sub foo ( ) { say 2*$lexical }; my $lexical = 4; foo();
<p6eval> rakudo 2ee5db: OUTPUT«8␤»
<Util> Why did that not err with "Symbol '$lexical' not predeclared in
foo"? Known bug?
<masak> Util: hm. maybe.
<masak> I'll check.
<PerlJam> rakudo:  { say $a;  my $a = 42; }
<p6eval> rakudo 2ee5db: OUTPUT«Any()␤»
<masak> :(
<masak> rakudo: say $a; my $a = 42
<p6eval> rakudo 2ee5db: OUTPUT«Any()␤»
<masak> at least there's an old possibly closed ticket for that.
<Util> It is like any var that exists in a scope is legal from the
start of scope, instead of from the point of declaration. I am
suprised there is no spectest for that.
<masak> I can't find a ticket for it either.
<masak> I'm almost sure we had one.
<PerlJam> masak: me too, I remember we talked about a similar (the
same) bug a long time ago
* masak submits rakudobug
<masak> Util++
<sorear> Util: it's a pretty deep-seated bug in PAST
<masak> someone else might have better luck than I finding it in RT.
<masak> I found quite a number of similar ones, but not exactly that one.
<Util> Thanks, everyone

I found these tickets which are similar but not the same:
   http://rt.perl.org/rt3/Ticket/Display.html?id=72948
   http://rt.perl.org/rt3/Ticket/Display.html?id=73074

Reply via email to