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

Statement-modifying if falsely detected as p5-idiomatic /i after assigning form of regex substitution in Rakudo #3555

Closed
p6rt opened this issue Nov 10, 2014 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 10, 2014

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

Searchable as RT123168$

@p6rt
Copy link
Author

p6rt commented Nov 10, 2014

From @masak

<FROGGS> hmmm, I've seen that before somewhere​:
<FROGGS> ===SORRY!=== Error while compiling lib/Cache/Memcached.pm
<FROGGS> Unsupported use of /i; in Perl 6 please use :i
<FROGGS> at lib/Cache/Memcached.pm​:479
<FROGGS> ------> $ip ~~ s​:g [ \[ | \] ] = '' i⏏f $ip.defined;
<FROGGS> m​: my $foo = ""; $foo ~~ s​:g [ \[ | \] ] = '' if $foo.defined
<camelia> rakudo-moar cb1b1c​: OUTPUT«===SORRY!=== Error while
compiling /tmp/3RGHPjSBid␤Unsupported use of /i; in Perl 6 please use
:i␤at /tmp/3RGHPjSBid​:1␤------> foo = ""; $foo ~~ s​:g [ \[ | \] ] = ''
i⏏f $foo.defined␤»
<FROGGS> std​: my $foo = ""; $foo ~~ s​:g [ \[ | \] ] = '' if $foo.defined
<camelia> std : OUTPUT«Can't chdir to [...]
<FROGGS> hmpf
<PerlJam> FROGGS​: maybe change old_rx_mods to look for a word boundary
after the character class since it's comparing against single
characters anyway.
<PerlJam> (Is it a bug that we don't look for repeated modifiers?)
<masak> FROGGS​: ooh -- can I rakubmit that one?
<FROGGS> masak​: surely :o)
* masak does

@p6rt
Copy link
Author

p6rt commented Nov 10, 2014

From @FROGGS

Patch​: rakudo/rakudo@cd6da9a7f8
Test​: Raku/roast@f5e132dce7

@p6rt
Copy link
Author

p6rt commented Nov 10, 2014

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

@p6rt p6rt closed this as completed Nov 10, 2014
@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