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

Calling .trans with a Pair of Parcels using the postfix hypermetaoperator produces the wrong result in Rakudo #2360

Closed
p6rt opened this issue Feb 9, 2011 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 9, 2011

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

Searchable as RT83766$

@p6rt
Copy link
Author

p6rt commented Feb 9, 2011

From @masak

<masak> rakudo​: say "!$_!" for 1.trans((1..26) => (14..26,1..13)),
2.trans((1..26) => (14..26,1..13))
<p6eval> rakudo 184bf7​: OUTPUT«!14!␤!15!␤»
<masak> rakudo​: say "!$_!" for (1, 2)>>.trans((1..26) => (14..26,1..13))
<p6eval> rakudo 184bf7​: OUTPUT«!14!␤!!␤»
* masak submits rakudobug
<masak> hm, this would be handled by !dispatch_dispatcher_parallel in
src/glue/dispatch.pir ...
<masak> it looks like perfectly innocent PIR code.
<masak> "I notice that I am confused."
<masak> doing the calls one after the other gives the desired result.
doing the calls one after the other using the
postfix_prefix_metaoperator Texas thingy doesn't give the desired
result. there's nothing obviously wrong with the code that handles the
dispatch.
* masak broods
<masak> rakudo​: say "!$_!" for (1, 2)>>.trans([1..26] => [14..26,1..13])
<p6eval> rakudo 184bf7​: OUTPUT«!14!␤!15!␤»
<masak> could this be -- *gasp* -- an iterator-related bug?
<jnthn> duh duh DUUUHHH!

@p6rt
Copy link
Author

p6rt commented Dec 16, 2012

From @timo

Added a test case in Raku/roast@b5ce7a2

The bug appears to be fixed, so closing.

@p6rt
Copy link
Author

p6rt commented Dec 16, 2012

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

@p6rt
Copy link
Author

p6rt commented Dec 16, 2012

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

@p6rt p6rt closed this as completed Dec 16, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
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

1 participant