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

Different parsing of combined colonpairs #6170

Open
p6rt opened this issue Apr 2, 2017 · 4 comments
Open

Different parsing of combined colonpairs #6170

p6rt opened this issue Apr 2, 2017 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Apr 2, 2017

Migrated from rt.perl.org#131089 (status was 'open')

Searchable as RT131089$

@p6rt
Copy link
Author

p6rt commented Apr 2, 2017

From @zoffixznet

If joined colonpairs are after a position arg, only the first colonpair gets registered​:

  <Zoffix__> m​: -> *@​_, *%_ { dd [@​_, %_] }("/", :r​:w​:d​:x)
  <camelia> rakudo-moar 1b9d53​: OUTPUT​: «[["/"], {​:r}]␤»

But if they're first in line, then all do​:

  <Zoffix__> m​: -> *@​_, *%_ { dd [@​_, %_] }(​:r​:w​:d​:x, "/")
  <camelia> rakudo-moar 1b9d53​: OUTPUT​: «[["/"], {​:d, :r, :w, :x}]␤»

When in a [], only first one is obtained as well​:
  <Zoffix__> m​: dd [​:r​:w​:d​:x]
  <camelia> rakudo-moar 1b9d53​: OUTPUT​: «[​:r]␤»

And when in a {}, all are obtained, but only the first one gets value True (related?)
  <Zoffix__> m​: dd {​:r​:w​:d​:x}
  <camelia> rakudo-moar 1b9d53​: OUTPUT​: «Hash % = {​:d(1), :r, :w(1), :x(1)}␤»

@p6rt
Copy link
Author

p6rt commented Apr 2, 2017

From @AlexDaniel

I wonder, is it a dup of RT #​124553 and RT #​125353 ?

On 2017-04-02 04​:50​:15, cpan@​zoffix.com wrote​:

If joined colonpairs are after a position arg, only the first
colonpair gets registered​:

<Zoffix__> m​: -> *@​_, *%_ { dd [@​_, %_] }("/", :r​:w​:d​:x)
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «[["/"], {​:r}]␤»

But if they're first in line, then all do​:

<Zoffix__> m​: -> *@​_, *%_ { dd [@​_, %_] }(​:r​:w​:d​:x, "/")
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «[["/"], {​:d, :r, :w, :x}]␤»

When in a [], only first one is obtained as well​:
<Zoffix__> m​: dd [​:r​:w​:d​:x]
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «[​:r]␤»

And when in a {}, all are obtained, but only the first one gets value
True (related?)
<Zoffix__> m​: dd {​:r​:w​:d​:x}
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «Hash % = {​:d(1), :r, :w(1),
:x(1)}␤»

@p6rt
Copy link
Author

p6rt commented Apr 2, 2017

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

@p6rt
Copy link
Author

p6rt commented May 12, 2019

From @dogbert17

On Sun, 02 Apr 2017 07​:48​:11 -0700, alex.jakimenko@​gmail.com wrote​:

I wonder, is it a dup of RT #​124553 and RT #​125353 ?

On 2017-04-02 04​:50​:15, cpan@​zoffix.com wrote​:

If joined colonpairs are after a position arg, only the first
colonpair gets registered​:

<Zoffix__> m​: -> *@​_, *%_ { dd [@​_, %_] }("/", :r​:w​:d​:x)
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «[["/"], {​:r}]␤»

But if they're first in line, then all do​:

<Zoffix__> m​: -> *@​_, *%_ { dd [@​_, %_] }(​:r​:w​:d​:x, "/")
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «[["/"], {​:d, :r, :w, :x}]␤»

When in a [], only first one is obtained as well​:
<Zoffix__> m​: dd [​:r​:w​:d​:x]
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «[​:r]␤»

And when in a {}, all are obtained, but only the first one gets value
True (related?)
<Zoffix__> m​: dd {​:r​:w​:d​:x}
<camelia> rakudo-moar 1b9d53​: OUTPUT​: «Hash % = {​:d(1), :r, :w(1),
:x(1)}␤»

The examples given by Zoffix above seems to have been fixed by rakudo/rakudo@9135914

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