Em Fri, 14 Apr 2017 14:12:54 -0700, [email protected] escreveu:
> Em Fri, 07 Apr 2017 19:59:42 -0700, [email protected] escreveu:
> >
> > <Zoffix_> m: say so 42 ~~ { try $_ == 5 }
> > <camelia> rakudo-moar af50e0: OUTPUT: «WARNINGS for <tmp>:Useless
> > use
> > of "==" in expression "$_ == 5" in sink context (line 1)False»
> >
> > <Zoffix_> m: say so 42 ~~ { $_ == 5 }
> > <camelia> rakudo-moar af50e0: OUTPUT: «False»
>
>
> I think the problem is only with block + try...
>
> <SmokeMachine> m: say {try 5 == 5}()
> <camelia> combined, experimental evalbot rakudo-moar 7f73f9: OUTPUT:
> «WARNINGS for <tmp>:Useless use of "==" in expression "5 == 5" in
> sink context (line 1)True»
try with a block doesn't warn:
<SmokeMachine> Fernando Corrêa de Oliveira m: say {try {5 == 5}}()
<•camelia> combined, experimental evalbot rakudo-moar 624fe8: OUTPUT: «True»