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

duplicated before-regexp modifier allowed in STD but not in Rakudo #2090

Closed
p6rt opened this issue Aug 24, 2010 · 5 comments
Closed

duplicated before-regexp modifier allowed in STD but not in Rakudo #2090

p6rt opened this issue Aug 24, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 24, 2010

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

Searchable as RT77406$

@p6rt
Copy link
Author

p6rt commented Aug 24, 2010

From @bbkr

STD allows duplicated regexp modifier everywhere

[12​:50] <bbkr> std​: "a" ~~ m​:i/​:i A/
[12​:50] <p6eval> std 32097​: OUTPUT«ok 00​:01 118mâ�¤Â»

[12​:50] <bbkr> std​: "a" ~~ m​:i​:i/A/
[12​:50] <p6eval> std 32097​: OUTPUT«ok 00​:01 118mâ�¤Â»

[13​:04] <bbkr> std​: "a" ~~ m/​:i​:i A/
[13​:04] <p6eval> std 32097​: OUTPUT«ok 00​:01 118mâ�¤Â»

Rakudo works fine only in the first and third case

[12​:32] <bbkr> rakudo​: say "a" ~~ m​:i/​:i A/
[12​:32] <p6eval> rakudo f8763b​: OUTPUT«aâ�¤Â»

[13​:04] <bbkr> rakudo​: say "a" ~~ m/​:i​:i A/
[13​:04] <p6eval> rakudo f8763b​: OUTPUT«aâ�¤Â»

But fails in second

[12​:32] <bbkr> rakudo​: say "a" ~~ m​:i​:i/A/
[12​:32] <p6eval> rakudo f8763b​: OUTPUT«duplicate named argument in callâ�¤ in
main program body at line 22​:/tmp/FjoThAtxNUâ�¤Â»

@p6rt
Copy link
Author

p6rt commented Mar 16, 2014

From @ShimmerFairy

Some new information​:

  <lue> rakudo​: say "a" ~~ m​:i/​:i A/
  <camelia> rakudo-parrot a24091, rakudo-jvm a24091, rakudo-moar a24091​: OUTPUT«「aï½£â�¤â�¤Â»
  <lue> rakudo​: say "a" ~~ m​:i​:i/A/
  <camelia> rakudo-parrot a24091​: OUTPUT«duplicate named argument in callâ�¤ in block at /tmp/tmpfile​:1â�¤â�¤Â»
  <camelia> ..rakudo-jvm a24091, rakudo-moar a24091​: OUTPUT«「aï½£â�¤â�¤Â»
  <lue> rakudo​: say "a" ~~ m/​:i​:i A/
  <camelia> rakudo-parrot a24091, rakudo-jvm a24091, rakudo-moar a24091​: OUTPUT«「aï½£â�¤â�¤Â»

Only Rakudo on Parrot dislikes the second case; the other backends handle it just fine.

@p6rt
Copy link
Author

p6rt commented Mar 14, 2015

From @usev6

I added the examples as tests to S05-modifier/ii.t with commit Raku/roast@3c01d7057c.

The tests pass for MoarVM and JVM. Since support for Parrot was suspended with Rakudo Star Release 2015.02, I'm closing this ticket as 'resolved'.

I'll add the ticket to a list of closed ticket living in the mu repository​: https://github.com/perl6/mu/blob/master/misc/rt.perl.org/tickets_closed_parrot_only.txt.

In case support for Parrot will be restored in some future release the listed tickets can be checked and re-opened as appropriate.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Mar 14, 2015

From @usev6

I added the examples as tests to S05-modifier/ii.t with commit Raku/roast@3c01d7057c.

The tests pass for MoarVM and JVM. Since support for Parrot was suspended with Rakudo Star Release 2015.02, I'm closing this ticket as 'resolved'.

I'll add the ticket to a list of closed ticket living in the mu repository​: https://github.com/perl6/mu/blob/master/misc/rt.perl.org/tickets_closed_parrot_only.txt.

In case support for Parrot will be restored in some future release the listed tickets can be checked and re-opened as appropriate.

@p6rt p6rt closed this as completed Mar 14, 2015
@p6rt
Copy link
Author

p6rt commented Mar 14, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant