Navigation Menu

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

Rakudo doesn't Z together mixes of elements and ranges properly #700

Closed
p6rt opened this issue Feb 14, 2009 · 6 comments
Closed

Rakudo doesn't Z together mixes of elements and ranges properly #700

p6rt opened this issue Feb 14, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Feb 14, 2009

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

Searchable as RT63232$

@p6rt
Copy link
Author

p6rt commented Feb 14, 2009

From @masak

<masak> rakudo​: for "a".."c" Z ("?", "a".."b") -> $x1, $x2 { say $x1, $x2 }
<p6eval> rakudo a0a390​: OUTPUT«a?␤ba␤StopIteration [...]
<masak> jnthn​: does this look right to you?
<TimToady> pugs​: for "a".."c" Z ("?", "a".."b") -> $x1, $x2 { say $x1, $x2 }
<p6eval> pugs​: OUTPUT«a?ba␤cb␤»
* masak submits rakudobug
<TimToady> looks right to me
<masak> good enough for me :)
<TimToady> shouldn't need the parens, either
<masak> right. just making sure.
<TimToady> pugs​: for "a".."c" Z "?", "a".."b" -> $x1, $x2 { say $x1, $x2 }
<p6eval> pugs​: OUTPUT«a?ba␤cb␤»
<jnthn> rakudo​: say "a".."c" Z "?", "a".."b";
<p6eval> rakudo a0a390​: OUTPUT«a?bab␤»

From the last example, we see that there's a 'c' missing from the
result of the Z.

@p6rt
Copy link
Author

p6rt commented Feb 16, 2009

From @bacek

On Sat Feb 14 08​:16​:28 2009, masak wrote​:

<masak> rakudo​: for "a".."c" Z ("?", "a".."b") -> $x1, $x2 { say $x1,
$x2 }
<p6eval> rakudo a0a390​: OUTPUT«a?␤ba␤StopIteration [...]
<masak> jnthn​: does this look right to you?
<TimToady> pugs​: for "a".."c" Z ("?", "a".."b") -> $x1, $x2 { say $x1,
$x2 }
<p6eval> pugs​: OUTPUT«a?ba␤cb␤»
* masak submits rakudobug
<TimToady> looks right to me
<masak> good enough for me :)
<TimToady> shouldn't need the parens, either
<masak> right. just making sure.
<TimToady> pugs​: for "a".."c" Z "?", "a".."b" -> $x1, $x2 { say $x1, $x2 }
<p6eval> pugs​: OUTPUT«a?ba␤cb␤»
<jnthn> rakudo​: say "a".."c" Z "?", "a".."b";
<p6eval> rakudo a0a390​: OUTPUT«a?bab␤»

From the last example, we see that there's a 'c' missing from the
result of the Z.

One-line fix available at
http://github.com/bacek/rakudo/commit/40254c113c0a87155c08be82baa1b47fd62a07d7

Someone (read "moritz") have to add tests :)

--
Bacek

@p6rt
Copy link
Author

p6rt commented Feb 16, 2009

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

@p6rt
Copy link
Author

p6rt commented Feb 18, 2009

From @moritz

Vasily Chekalkin via RT wrote​:

On Sat Feb 14 08​:16​:28 2009, masak wrote​:

<masak> rakudo​: for "a".."c" Z ("?", "a".."b") -> $x1, $x2 { say $x1,
$x2 }
<p6eval> rakudo a0a390​: OUTPUT«a?␤ba␤StopIteration [...]
<masak> jnthn​: does this look right to you?
<TimToady> pugs​: for "a".."c" Z ("?", "a".."b") -> $x1, $x2 { say $x1,
$x2 }
<p6eval> pugs​: OUTPUT«a?ba␤cb␤»
* masak submits rakudobug
<TimToady> looks right to me
<masak> good enough for me :)
<TimToady> shouldn't need the parens, either
<masak> right. just making sure.
<TimToady> pugs​: for "a".."c" Z "?", "a".."b" -> $x1, $x2 { say $x1, $x2 }
<p6eval> pugs​: OUTPUT«a?ba␤cb␤»
<jnthn> rakudo​: say "a".."c" Z "?", "a".."b";
<p6eval> rakudo a0a390​: OUTPUT«a?bab␤»

From the last example, we see that there's a 'c' missing from the
result of the Z.

One-line fix available at
http://github.com/bacek/rakudo/commit/40254c113c0a87155c08be82baa1b47fd62a07d7

Someone (read "moritz") have to add tests :)

"someone" added tests to S29-container/zip.t (and added that file to
t/spectest.data)

--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

From @jnthn

On Wed Feb 18 09​:02​:32 2009, mlenz@​physik.uni-wuerzburg.de wrote​:

Vasily Chekalkin via RT wrote​:

On Sat Feb 14 08​:16​:28 2009, masak wrote​:

<jnthn> rakudo​: say "a".."c" Z "?", "a".."b";
<p6eval> rakudo a0a390​: OUTPUT«a?bab␤»

From the last example, we see that there's a 'c' missing from the
result of the Z.

One-line fix available at

http://github.com/bacek/rakudo/commit/40254c113c0a87155c08be82baa1b47fd62a07d7

Someone (read "moritz") have to add tests :)

"someone" added tests to S29-container/zip.t (and added that file to
t/spectest.data)

And yet someone else applied bacek's patch as git f9b9041 and untodo'd
the test.

Thanks all,

Jonathan

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

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

@p6rt p6rt closed this as completed Feb 25, 2009
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

1 participant