develooper Front page | perl.perl6.compiler | Postings from February 2018

[perl #112986] [REPL] error 'Use of uninitialized $_ of type Any innumeric context" throws extra errors

From:
Aleks-Daniel Jakimenko-Aleksejev via RT
Date:
February 4, 2018 02:11
Subject:
[perl #112986] [REPL] error 'Use of uninitialized $_ of type Any innumeric context" throws extra errors
Message ID:
rt-4.0.24-22198-1517710260-134.112986-80-0@perl.org
🍕 Test in
https://github.com/rakudo/rakudo/commit/4385e3fc0b5272a14c1c507ccf5846684c16453a

On 2017-08-28 13:58:57, alex.jakimenko@gmail.com wrote:
> Currently it says this:
> Use of uninitialized value of type Any in numeric context
> in block <unit> at <unknown file> line 1
>
> As well as complains about sink context in non-repl:
> Useless use of "**" in expression "$_**2" in sink context (line 1)
>
> I see no problem with it. Except that it no longer says which variable
> caused
> the trouble. I guess it is less than awesome, but this part changed
> before
> 2014.01. I can't bisect there and it is irrelevant to this ticket.
>
> I'll mark this as 「testneeded」 in case someone can come up with a test
> for
> this, but otherwise it is a resolved ticket.
> On 2012-11-21 09:53:41, FROGGS.de wrote:
> > thats the expected behaviour, right?
> >
> > rakudo-2012-11$ install/bin/perl6
> > > $_**2;
> > use of uninitialized variable $_ of type Any in numeric context
> > 0
> > >
> >
> >




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About