Em Fri, 07 Apr 2017 10:49:02 -0700, c...@zoffix.com escreveu:
> Some methods don't seem to get autothreaded correctly. Str does have
> .Numeric, but when junctioned, it doesn't seem to be reachable:
> 
> 
> $ perl6 -e 'say any("42",42).Int'
> any(42, 42)
> 
> $ perl6 -e 'say any("42",42).Numeric'
> Cannot resolve caller Numeric(Str: ); none of these signatures match:
>     (Mu:U \v: *%_)
> in block <unit> at -e line 1
> 
> $ perl6 -e 'say any("42",42).Real'
> Cannot resolve caller Real(Str: ); none of these signatures match:
>     (Mu:U \v: *%_)
> in block <unit> at -e line 1
> 
> $ perl6 -e 'say "42".Numeric'
> 42
> 
> $ perl6 -e 'say "42".Real'
> 42
> 
> $ perl6 -v
> This is Rakudo version 2017.03-153-gb1e7a01 built on MoarVM version
> 2017.03-87-g5d73bf4
> implementing Perl 6.c.


That's not problem only on Int:

$ ./perl6 -e 'say any(42, 42.0).Numeric'
Cannot resolve caller Numeric(Int: ); none of these signatures match:
    (Mu:U \v: *%_)
  in block <unit> at -e line 1

$ ./perl6 -e 'say any(42.0, 42).Numeric'
Cannot resolve caller Numeric(Rat: ); none of these signatures match:
    (Mu:U \v: *%_)
  in block <unit> at -e line 1

Reply via email to