On Tue, Jun 24, 2008 at 11:18:31PM +0100, Ovid wrote:
> I'm trying to figure out the best way of knowing which features are
> implemented.  Looking through the tests in languages/perl6/t/ is a bit
> disappointing as some things I know have been implemented aren't there
> (e.g., types on sub signatures).  Should I be looking elsewhere?

The tests in languages/perl6/t in the parrot repo are just basic
tests to make sure Test.pm will work.  Most of Rakudo's tests come
from the official test suite.  Using either "make spectest_regression"
or "make spectest" will check out a copy of the official test suite
from the pugs repo and run Rakudo against those.

The tests that we currently expect to work are in the 
t/spectest_regression.data file.

>   # 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.  It's not always obvious how
to determine what works and what doesn't, so the best bet is
to ask, either on the list, on irc, or simply send a query
to <[EMAIL PROTECTED]>.

Pm

Reply via email to