Re: [perl #62364] [BUG] *

2009-01-15 Thread Carl Mäsak
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

Re: [perl #62364] [BUG] *

2009-01-15 Thread Mark J. Reed
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

Re: [perl #62364] [BUG] *

2009-01-15 Thread Carl Mäsak
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