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

internal error for invalid native type in "is native" #6372

Closed
p6rt opened this issue Jul 3, 2017 · 6 comments
Closed

internal error for invalid native type in "is native" #6372

p6rt opened this issue Jul 3, 2017 · 6 comments
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded

Comments

@p6rt
Copy link

p6rt commented Jul 3, 2017

Migrated from rt.perl.org#131696 (status was 'resolved')

Searchable as RT131696$

@p6rt
Copy link
Author

p6rt commented Jul 3, 2017

From @geekosaur

[03 21​:03​:27] <Skarsnik> m​: use NativeCall; sub foo(num $a) is
native("foo") { * };
[03 21​:03​:27] <camelia> rakudo-moar a7b230​: OUTPUT​: «===SORRY!=== Error
while compiling <tmp>␤
[03 21​:03​:27] Cannot resolve caller infix​:<==>(NQPMu, Int); none of these
signatures match​:␤
[03 21​:03​:27] ($?)␤
[03 21​:03​:27] (\a, \b)␤
[03 21​:03​:27] (Real \a, Real \b)␤
[03 21​:03​:27] (Int​:D \a, Int​:D \b)␤
[03 21​:03​:27] (int $a, int $b)␤
[03 21​:03​:27] (Num​:D \a, Num​:D \b …»
[03 21​:06​:25] <geekosaur> now I think we have an LTA...
[03 21​:06​:52] <geekosaur> m​: use NativeCall; sub foo(num32 $a) is
native("foo") { * };
[03 21​:06​:53] <camelia> rakudo-moar a7b230​: ( no output )
[03 21​:06​:59] <geekosaur> LTA for a bad native type

--
brandon s allbery kf8nh sine nomine associates
allbery.b@​gmail.com ballbery@​sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

@p6rt
Copy link
Author

p6rt commented Mar 15, 2018

From @dogbert17

On Mon, 03 Jul 2017 14​:16​:58 -0700, allbery.b@​gmail.com wrote​:

[03 21​:03​:27] <Skarsnik> m​: use NativeCall; sub foo(num $a) is
native("foo") { * };
[03 21​:03​:27] <camelia> rakudo-moar a7b230​: OUTPUT​: «===SORRY!=== Error
while compiling <tmp>␤
[03 21​:03​:27] Cannot resolve caller infix​:<==>(NQPMu, Int); none of these
signatures match​:␤
[03 21​:03​:27] ($?)␤
[03 21​:03​:27] (\a, \b)␤
[03 21​:03​:27] (Real \a, Real \b)␤
[03 21​:03​:27] (Int​:D \a, Int​:D \b)␤
[03 21​:03​:27] (int $a, int $b)␤
[03 21​:03​:27] (Num​:D \a, Num​:D \b …»
[03 21​:06​:25] <geekosaur> now I think we have an LTA...
[03 21​:06​:52] <geekosaur> m​: use NativeCall; sub foo(num32 $a) is
native("foo") { * };
[03 21​:06​:53] <camelia> rakudo-moar a7b230​: ( no output )
[03 21​:06​:59] <geekosaur> LTA for a bad native type

Testing with
~ $ perl6 -v
This is Rakudo version 2018.02.1-164-g57af8b847 built on MoarVM version 2018.02-171-geee5be412
implementing Perl 6.c.

the result looks quite a bit better​:

~ $ perl6 -e 'use NativeCall; sub foo(num $a) is native("foo") { * }'
Potential difficulties​:
  In 'foo' routine declaration - Not an accepted NativeCall type for parameter [1] $a : num
  --> For Numerical type, use the appropriate int32/int64/num64...
  at -e​:1
  ------> use NativeCall; sub foo(num $a) ⏏is native("foo") { * }

@p6rt
Copy link
Author

p6rt commented Mar 15, 2018

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

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 2, 2018

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 2, 2018
@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded
Projects
None yet
Development

No branches or pull requests

1 participant