Skip Menu |
 
Report information
Id: 73112
Status: resolved
Priority: 0/
Queue: perl6

Owner: bbkr <cpan [at] bbkr.org>
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



Subject: [BUG] There's an empty method on [[]] which gives [] in Rakudo
Date: Fri, 26 Feb 2010 01:20:31 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 179b
<diakopter> rakudo: [[]].perl.say; [[]].''().perl.say # I don't know why there's an empty method here... <p6eval> rakudo 852213: OUTPUT«[[]]␤[]␤» * masak submits rakudobug
Download (untitled) / with headers
text/plain 402b
On Thu Feb 25 16:21:21 2010, masak wrote: Show quoted text
> <diakopter> rakudo: [[]].perl.say; [[]].''().perl.say # I don't know > why there's an empty method here... > <p6eval> rakudo 852213: OUTPUT«[[]]␤[]␤» > * masak submits rakudobug
I suspect you see a method which overrides a vtable, which typically have the name '' in Rakudo. Fixing this bug likely depends on http://trac.parrot.org/parrot/ticket/1505
Download (untitled) / with headers
text/plain 219b
On Atlanta build: [19:05] <bbkr> rakudo: [[]].''().perl.say [19:05] <p6eval> rakudo ac8a2a: OUTPUT«too few positional arguments: 1 passed, 2 (or more) expected␤ in main program body at line 22:/tmp/IAjyiX0K2V␤»
Download (untitled) / with headers
text/plain 245b
NOM: empty method is gone, taking for tests 11:54 bbkr1 nom: [[]].''().perl.say 11:54 p6eval nom d97997: OUTPUT«Method '' not found for invocant of class 'Array'␤ in <anon> at /tmp/lC81aKMP7R:1␤ in <anon> at /tmp/lC81aKMP7R:1␤␤»
I deem this sufficiently weird not to need a spectest, so closing without one.


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