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

[perl #69756] [BUG] Null PMC access when doing callwith inside a multi method

From:
Will Coleda via RT
Date:
October 10, 2011 18:20
Subject:
[perl #69756] [BUG] Null PMC access when doing callwith inside a multi method
Message ID:
rt-3.6.HEAD-31297-1318296003-1564.69756-15-0@perl.org
On Tue Oct 13 16:05:16 2009, masak wrote:
> <masak> rakudo: multi sub f(0) {}; multi sub f($n) { say $n;
> callwith($n - 1) }; f(3)
> <p6eval> rakudo 54cfe4: OUTPUT«3␤Null PMC access in clone()␤ [...]
> * masak submits rakudobug
> 
> jnthn++ informs me that the above code is likely not what I want.
> Nevertheless, I expected it do produce something a bit less internal
> than a Null PMC access error. Seems jnthn did, too.

NPA gone:

21:19 < [Coke]> rakudo: multi sub f(0) {}; multi sub f($n) { say $n; 
                callwith($n - 1) }; f(3)
21:19 <+p6eval> rakudo 38907e: OUTPUT«3␤»

Closable with tests.
-- 
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