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

Buf.pm infix:<~> bug; breaks IO::Socket #4711

Closed
p6rt opened this issue Nov 1, 2015 · 8 comments
Closed

Buf.pm infix:<~> bug; breaks IO::Socket #4711

p6rt opened this issue Nov 1, 2015 · 8 comments
Labels
JVM Related to Rakudo-JVM testcommitted

Comments

@p6rt
Copy link

p6rt commented Nov 1, 2015

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

Searchable as RT126529$

@p6rt
Copy link
Author

p6rt commented Nov 1, 2015

From @ugexe

Using `$Blob1 ~= $Blob2` on jvm gives an error of "java.lang.RuntimeException​: This type does not support positional operations"

To reproduce​: `my Blob $a = "a".encode; my Blob $b = "b".encode; $a ~= $b; say $a.perl;`

I added debug prints but the output makes it appear that it should work​:
https://gist.github.com/ugexe/8a83f69fdb81bf989377

The above basically boils down to `nqp​::splice(utf8.new(), utf8.new(97), 0, 1)` but when I call this manually it works fine.

@p6rt
Copy link
Author

p6rt commented Nov 6, 2015

From @ugexe

On Sat Oct 31 19​:42​:22 2015, ugexe@​cpan.org wrote​:

Using `$Blob1 ~= $Blob2` on jvm gives an error of
"java.lang.RuntimeException​: This type does not support positional
operations"

To reproduce​: `my Blob $a = "a".encode; my Blob $b = "b".encode; $a ~=
$b; say $a.perl;`

I added debug prints but the output makes it appear that it should
work​:
https://gist.github.com/ugexe/8a83f69fdb81bf989377

The above basically boils down to `nqp​::splice(utf8.new(),
utf8.new(97), 0, 1)` but when I call this manually it works fine.

Resolved in rakudo/rakudo@d273e91

@p6rt
Copy link
Author

p6rt commented Nov 6, 2015

@ugexe - Status changed from 'new' to 'resolved'

@p6rt
Copy link
Author

p6rt commented Nov 9, 2015

From @ugexe

This has been reintroduced in the last 2 days

@p6rt
Copy link
Author

p6rt commented Nov 9, 2015

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

@p6rt
Copy link
Author

p6rt commented May 17, 2016

From @usev6

This works now (again)​:

$ perl6-j -e 'my Blob $a = "a".encode; my Blob $b = "b".encode; $a ~= $b; say $a.perl'
utf8.new(97,98)

I added this evaluation as a test to S03-operators/buf.t. I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented May 17, 2016

From @usev6

This works now (again)​:

$ perl6-j -e 'my Blob $a = "a".encode; my Blob $b = "b".encode; $a ~= $b; say $a.perl'
utf8.new(97,98)

I added this evaluation as a test to S03-operators/buf.t. I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed May 17, 2016
@p6rt
Copy link
Author

p6rt commented May 17, 2016

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

@p6rt p6rt added JVM Related to Rakudo-JVM testcommitted labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM testcommitted
Projects
None yet
Development

No branches or pull requests

1 participant