Mark (>), Carl (>>):
>> This has nothing to do with the bug, but you'd probably not want to
>> test for *-ness with .isa; use smartmatch (~~) instead.
>>
>> On the bright side, this already works in Rakudo:
>
> But doesnt Whatever smartmatch anything? Isn't that sort of its raison d'etre?
Short an
But doesnt Whatever smartmatch anything? Isn't that sort of its raison d'etre?
On 1/15/09, Carl Mäsak wrote:
> Ovid (>):
>> I tried to implement "plan *" for 'no_plan' and this is the minimal test
>> case:
>>
>> perl6 $ perl6 -e 'my $plan = *; say $plan.isa(Whatever)'
>> Method 'isa' not found
Ovid (>):
> I tried to implement "plan *" for 'no_plan' and this is the minimal test case:
>
> perl6 $ perl6 -e 'my $plan = *; say $plan.isa(Whatever)'
> Method 'isa' not found for invocant of class 'Whatever'
> [...]
This has nothing to do with the bug, but you'd probably not want to
test for *-n