Skip Menu |
Report information
Id: 131120
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Junctions don't autothread some methods correctly
Download (untitled) / with headers
text/plain 752b
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.
Download (untitled) / with headers
text/plain 1.1k
Em Fri, 07 Apr 2017 10:49:02 -0700, cpan@zoffix.com escreveu: Show quoted text
> 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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org