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

Cryptic error when parametrizing Bufs with non-native types #2655

Closed
JJ opened this issue Jan 28, 2019 · 4 comments
Closed

Cryptic error when parametrizing Bufs with non-native types #2655

JJ opened this issue Jan 28, 2019 · 4 comments

Comments

@JJ
Copy link
Collaborator

JJ commented Jan 28, 2019

The Problem

my $b = Buf[Int].new( 3, -3, 44, -44)

fails with

MVMArray: bindpos expected object register

Ditto for UInt and possibly other non-native Integer types.

Expected Behavior

From these lines:

https://github.com/rakudo/rakudo/blob/master/src/core/Buf.pm6#L18-L20

it looks as it any Int is OK; from the next lines it would seem as if as long as they have use a multiple of 8, is OK. However, the exception is not caught there.

Environment

  • Operating system:

  • Compiler version (perl6 -v):

    This is Rakudo version 2018.11 built on MoarVM version 2018.11

Same problem occurs with newer versions, though.

@lizmat
Copy link
Contributor

lizmat commented Jan 28, 2019

Fixed with 7133b81 , adapted tests as well, so can be closed as far as I am concerned.

@JJ
Copy link
Collaborator Author

JJ commented Jan 28, 2019

Great, thanks!

@JJ JJ closed this as completed Jan 28, 2019
@lizmat
Copy link
Contributor

lizmat commented Jan 28, 2019

JJ: could you privmsg me re next weekend (FOSDEM & Squashathon?)

@JJ
Copy link
Collaborator Author

JJ commented Jan 28, 2019 via email

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

No branches or pull requests

2 participants