1 Feb 15:01
[perl #68782] [BUG] Less than awesome error message when including \# in a regex in Rakudo
Will Coleda via RT <perl6-bugs-followup <at> perl.org>
2012-02-01 14:01:34 GMT
2012-02-01 14:01:34 GMT
On Tue Aug 25 14:22:47 2009, masak wrote: > This be Rakudo 9d9d416 on Parrot r40783. > > $ cat > a > my $i; > die '' if /^ \#/; > ++$i; > 1; > $ perl6 a > Statement not terminated properly at line 4, near "1;\n" > in Main (src/gen_setting.pm:3460) > > $ cat > b > my $i; > die '' if /\#/; > ++$i; > $ perl6 b > perl6regex parse error: Quantifier follows nothing in regex at offset > 24, found '+' > in Main (src/gen_setting.pm:3460) > > <moritz_> \# is forbbiden, but the error message is LTA > <masak> waitwait, \# is forbidden? why? > <jnthn> .oO( LTA is a re-ordering of TLA ) > <masak> LTA is also an excellent TLA. > <moritz_> because... forgot the reason. It's in the commit message > that modififed S05 accordingly > <moritz_> some parsing ambiguty > <moritz_> you have to write '#' now > <moritz_> or maybe it was a commit against STD.pm(Continue reading)
RSS Feed