On Sat Jun 26 11:43:15 2010, pmichaud wrote: > Now fixed in a579f8e. Closing ticket. > > Pm
<masonkramer> How do I see if a thing does Callable? <masak> rakudo: sub foo {}; say &foo ~~ Callable <p6eval> rakudo cae7f9: OUTPUT«1» <masak> rakudo: sub foo {}; say &foo.^does(Callable) <p6eval> rakudo cae7f9: OUTPUT«1» <masonkramer> Ahh, yep that's what I wanted <masonkramer> by the way, shouldn't smartmatch always return Bools? <masak> there's no such rule. <masak> smartmatching on a regex, for example, returns a Match object. <masonkramer> Right...right <masonkramer> I would've expected Bool here though, just because I'm asking a yes or no question <masak> I'd say it's a bug too. <masak> but I think it's been reported already. * masak checks <masak> yep -- http://rt.perl.org/rt3/Ticket/Display.html?id=71462 <masak> but it's been resolved... hm. <masak> rakudo: say (* ~~ Whatever).WHAT <p6eval> rakudo cae7f9: OUTPUT«Bool()» <masak> rakudo: say ("OH HAI" ~~ Str).WHAT <p6eval> rakudo cae7f9: OUTPUT«Bool()» <masak> those cases are indeed fixed. <masak> this does not happen often. * masak reopens ticket because C<&foo ~~ Callable> yields an Int <masak> masonkramer++