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

Owner: Nobody
Requestors: archbaum [at] gmail.com
Cc:
AdminCc:

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



From: Andy Weidenbaum <archbaum [...] gmail.com>
To: rakudobug [...] perl.org
Subject: [LTA] List.splice issues superfluous warning: "Use of uninitialized value of type Any in string context"
Date: Sun, 23 Apr 2017 10:35:30 -0700
Download (untitled) / with headers
text/plain 593b
To repro:

    use v6;
    my $root = qw<zero one two>;
    my $step = 2;
    my $value = 'three';
    $root.splice($step, 0, $value);
    # Use of uninitialized value of type Any in string context.
    # Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
    #   in block <unit> at lta-golf.p6 line 8
    # Cannot resolve caller splice(List, Int, Int, Str); none of these signatures match:
    #   in block <unit> at lta-golf.p6 line 8

This is creating LTA error messages during exception testing of Crane [1].

RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.2k
On Sun, 23 Apr 2017 10:36:15 -0700, archbaum@gmail.com wrote: Show quoted text
> To repro: > > use v6; > my $root = qw<zero one two>; > my $step = 2; > my $value = 'three'; > $root.splice($step, 0, $value); > # Use of uninitialized value of type Any in string context. > # Methods .^name, .perl, .gist, or .say can be used to stringify it to > something meaningful. > # in block <unit> at lta-golf.p6 line 8 > # Cannot resolve caller splice(List, Int, Int, Str); none of these > signatures match: > # in block <unit> at lta-golf.p6 line 8 > > This is creating LTA error messages during exception testing of Crane [1]. > > [1]: https://github.com/atweiden/crane
Bisectable points to "Allow for native arrays in the settings" that moved splice proto to Mu: https://github.com/rakudo/rakudo/commit/65959501d4a34d44016241f13503e1c7e4964886 <Zoffix_> bisect: CONTROL { default { say 'bug' } }; CATCH { default {} }; qw<zero one two>.splice(2, 0, 'three'); <bisectable6> Zoffix_, Bisecting by output (old=2015.12 new=1bce2e5) because on both starting points the exit code is 0 <bisectable6> Zoffix_, bisect log: https://gist.github.com/626a5d430a68d88dc2daa52b1486b57e <bisectable6> Zoffix_, (2017-03-03) https://github.com/rakudo/rakudo/commit/65959501d4a34d44016241f13503e1c7e4964886


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