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

Parse of (;;$a) and ($a;;) identical, setting multi-invocant wrongly #4358

Closed
p6rt opened this issue Jun 28, 2015 · 3 comments
Closed

Parse of (;;$a) and ($a;;) identical, setting multi-invocant wrongly #4358

p6rt opened this issue Jun 28, 2015 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jun 28, 2015

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

Searchable as RT125502$

@p6rt
Copy link
Author

p6rt commented Jun 28, 2015

From @lizmat

[12​:40​:44] <lizmat> looking at (;;$a) signature
[12​:41​:12] <lizmat> apparently the internal datastructure is set up the same way for (;;$a) as it is for ($a;;)
[12​:43​:23] <lizmat> jnthn​: I'm not sure how to fix that in the grammar
[12​:44​:11] <moritz> ($a;;) should be the same as ($a), no?
[12​:44​:23] <lizmat> yes
[12​:44​:33] <lizmat> but *not* the same as (;;$a)
[12​:45​:17] <lizmat> the ;; just resets the multu-invocant flag to be applied to the parameter
[12​:45​:34] <lizmat> in the case of (;;$a), the reset happens too late
[12​:54​:32] <jnthn> lizmat​: I don't immediately know how to fix that...
[12​:54​:41] <lizmat> me neither :-(
[12​:54​:42] <jnthn> lizmat​: Agree it's a problem, though
[12​:55​:02] <jnthn> Can you RT it, and I'll take a look at it a bit later...
[12​:55​:06] <lizmat> ok, I'll rakudobug it
[12​:55​:10] <jnthn> Thanks :)

@p6rt
Copy link
Author

p6rt commented Jun 28, 2015

From @lizmat

Fixed with 85c3253cf289519728ed, has test in t/spec/S06-signature/multi-invocant.t

Can be closed.

Liz

On 28 Jun 2015, at 13​:08, Elizabeth Mattijsen (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Elizabeth Mattijsen
# Please include the string​: [perl #​125502]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125502 >

[12​:40​:44] <lizmat> looking at (;;$a) signature
[12​:41​:12] <lizmat> apparently the internal datastructure is set up the same way for (;;$a) as it is for ($a;;)
[12​:43​:23] <lizmat> jnthn​: I'm not sure how to fix that in the grammar
[12​:44​:11] <moritz> ($a;;) should be the same as ($a), no?
[12​:44​:23] <lizmat> yes
[12​:44​:33] <lizmat> but *not* the same as (;;$a)
[12​:45​:17] <lizmat> the ;; just resets the multu-invocant flag to be applied to the parameter
[12​:45​:34] <lizmat> in the case of (;;$a), the reset happens too late
[12​:54​:32] <jnthn> lizmat​: I don't immediately know how to fix that...
[12​:54​:41] <lizmat> me neither :-(
[12​:54​:42] <jnthn> lizmat​: Agree it's a problem, though
[12​:55​:02] <jnthn> Can you RT it, and I'll take a look at it a bit later...
[12​:55​:06] <lizmat> ok, I'll rakudobug it
[12​:55​:10] <jnthn> Thanks :)

@p6rt p6rt closed this as completed Jun 29, 2015
@p6rt
Copy link
Author

p6rt commented Jun 29, 2015

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

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