develooper Front page | perl.perl6.compiler | Postings from March 2012

[perl #112116] [BUG] Parrot Undef type leaking through when doing .hash on the result of a .map of a range in Rakudo

From:
Carl Mäsak
Date:
March 29, 2012 13:22
Subject:
[perl #112116] [BUG] Parrot Undef type leaking through when doing .hash on the result of a .map of a range in Rakudo
Message ID:
rt-3.6.HEAD-4610-1333052517-1703.112116-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112116]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112116 >


<moritz> r: constant %escapes = (^255).map({; chr($_) => sprintf
'%%%02X', $_ }).hash; say %escapes<e>
<p6eval> rakudo 018b27: OUTPUT«===SORRY!===␤invoke() not implemented
in class 'Undef'␤»
<moritz> r: constant $a = (^255).map({; $_ => $_ }).hash;
<p6eval> rakudo 018b27: OUTPUT«===SORRY!===␤invoke() not implemented
in class 'Undef'␤»
<moritz> r: constant $a = (^255).hash;
<p6eval> rakudo 018b27: OUTPUT«===SORRY!===␤Odd number of elements
found where hash expected␤»
<moritz> r: constant $a = (^256).hash;
<p6eval> rakudo 018b27:  ( no output )
<moritz> masak: wanna submit rakudobug?
* masak submits rakuodbug



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