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

Owner: Nobody
Requestors: raiph <raiph.mellor [at] gmail.com>
Cc:
AdminCc:

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



Date: Tue, 30 May 2017 22:20:04 -0400
From: raiph mellor <raiph.mellor [...] gmail.com>
To: rakudobug [...] perl.org
Subject: Bug in Perl6::Metamodel::Naming method set_name. `CArray[Pointer].^shortname` returns 'Pointer]'; should be 'CArray[Pointer]'
Download (untitled) / with headers
text/plain 600b
put $*PERL.compiler.version; # 2017.05.303.g.5.e.3393454 use NativeCall; put CArray[Pointer].^shortname; displays 'Pointer]' instead of expected 'CArray[Pointer]' or similar. The 'CArray' is missing and so is the expected open square bracket. timotimo++ noted that this is a problem in the Perl6::Metamodel::Naming method set_name, specifically the lines: my @parts := nqp::split('::', $name); ... $!shortname := @parts ?? @parts[nqp::elems(@parts) - 1] !! ''; See https://irclog.perlgeek.de/perl6/2017-05-30#i_14662809 for some investigation into which commit appeared to introduce this bug.
Download (untitled) / with headers
text/plain 418b
Show quoted text
> See https://irclog.perlgeek.de/perl6/2017-05-30#i_14662809 for some investigation into which commit appeared to introduce this bug.
Which yields https://github.com/rakudo/rakudo/commit/518b46feb9ae179cf7a73220673da5b9fbb01016 which suggests this code is part of the problem: $what.^set_name("{arr.^name}[{t.^name}]"); At a first glance it seems set_name expects a single type name and chokes when it's given two.
To: "raiph (via RT)" <perl6-bugs-followup [...] perl.org>
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Date: Wed, 31 May 2017 11:36:36 +0200
Subject: Re: [perl #131406] Bug in Perl6::Metamodel::Naming method set_name. `CArray[Pointer].^shortname` returns 'Pointer]'; should be 'CArray[Pointer]'
Download (untitled) / with headers
text/plain 992b
Fixed with 1ed284e2953382744b02058a , tests needed. Show quoted text
> On 31 May 2017, at 04:20, raiph (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by raiph > # Please include the string: [perl #131406] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131406 > > > > put $*PERL.compiler.version; # 2017.05.303.g.5.e.3393454 > > use NativeCall; put CArray[Pointer].^shortname; > > displays 'Pointer]' instead of expected 'CArray[Pointer]' or similar. > > The 'CArray' is missing and so is the expected open square bracket. > > timotimo++ noted that this is a problem in the > Perl6::Metamodel::Naming method set_name, specifically the lines: > > my @parts := nqp::split('::', $name); > ... > $!shortname := @parts ?? @parts[nqp::elems(@parts) - 1] !! ''; > > See https://irclog.perlgeek.de/perl6/2017-05-30#i_14662809 for some > investigation into which commit appeared to introduce this bug.


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