Patrick R. Michaud wrote:
> On Tue, Jun 24, 2008 at 11:18:31PM +0100, Ovid wrote:
>>   # remove the 'Int' and this works
>>   sub fact (Int $n) {
>>     if 0 == $n {
>>       return 1;
>>     }
>>     else {
>>       return $n * fact($n - 1);
>>     }
>>   }
>> 
>>   say fact(5);
>> 
>> The failure is at runtime, not compile time (full output below), but
>> I'm not sure how to proceed since I don't know if this is supposed to
>> work yet.  
> 
> In this case, the issue is that we don't have a multimethod for 
> infix:<->(Int, Int) returning Int. 

That's only half of the problem. The other half is that the type check
somtimes fails with "Null PMC access in type()", not with "Type check
failed".

Cheers,
Moritz


-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/

Reply via email to