develooper Front page | perl.perl6.compiler | Postings from September 2011

[perl #75918] [BUG] Dying with a custom-made exception only outputs the first character of error message in Rakudo

From:
Will Coleda via RT
Date:
September 19, 2011 21:38
Subject:
[perl #75918] [BUG] Dying with a custom-made exception only outputs the first character of error message in Rakudo
Message ID:
rt-3.6.HEAD-31297-1316493512-763.75918-15-0@perl.org
On Sun Jun 27 22:18:48 2010, pmichaud wrote:
> The problem is not unique to derived classes.  Standard exceptions also
> have the issue as well:
> 
>     die Exception.new("Test");    # displays "T"
> 
> The problem appears to be that Exception.new() expects a Parrot
> Exception PMC as an argument, and doesn't know what to do with a string.
> 
> Pm

00:37 < [Coke]> die Exception.new("Test"); 
00:37 < [Coke]> rakudo: die Exception.new("Test"); 
00:37 <+p6eval> rakudo cbdd9b: OUTPUT«Default constructor only takes named 
                arguments␤  in method new at src/gen/CORE.setting:502␤  in <anon> at 
                /tmp/Vb7LIiy8VA:1␤  in <anon> at /tmp/Vb7LIiy8VA:1␤␤»




-- 
Will "Coke" Coleda



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