Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

Siddhant Saraf

unread,
May 18, 2012, 4:05:09 PM5/18/12
to bugs-bi...@rt.perl.org
# New Ticket Created by Siddhant Saraf
# Please include the string: [perl #112986]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112986 >


<sisar> r: $_**2;
<p6eval> rakudo 45679a: OUTPUT«use of uninitialized variable $_ of
type Any in numeric context  in block <anon> at /tmp/uUxfmOEKJJ:1␤␤»
<sisar> that gives a different error locally
<sisar> it says "use of uninitialized variable $_ of type Any in
numeric contextMethod 'message' not found for invocant of class 'Any'
"
<moritz> the second half looks like an error during error reporting :/
<moritz> ah, you run it in the REPL
<sisar> yup
...
<moritz> but it's a bug that needs fixing
<moritz> r: say ($_ ** 2).WHAT
<p6eval> rakudo 45679a: OUTPUT«use of uninitialized variable $_ of
type Any in numeric context  in block <anon> at
/tmp/eWivcSD3YY:1␤␤Int()␤»
<sisar> so should I report a rakudobug, or are you fixing it right now ?
<moritz> please report
0 new messages