Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junctions don't autothread some methods correctly #6183

Open
p6rt opened this issue Apr 7, 2017 · 4 comments
Open

Junctions don't autothread some methods correctly #6183

p6rt opened this issue Apr 7, 2017 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 7, 2017

Migrated from rt.perl.org#131120 (status was 'open')

Searchable as RT131120$

@p6rt
Copy link
Author

p6rt commented Apr 7, 2017

From @zoffixznet

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.

@p6rt
Copy link
Author

p6rt commented Apr 22, 2017

From @FCO

Em Fri, 07 Apr 2017 10​:49​:02 -0700, cpan@​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

@p6rt
Copy link
Author

p6rt commented Apr 22, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the Bug label Jan 5, 2020
@raiph
Copy link

raiph commented Mar 20, 2021

See also rakudo/rakudo#3893

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants