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

Rakudo treats ' #' after interpolated variable as whitespace (whereas STD.pm6 doesn't) #2205

Closed
p6rt opened this issue Oct 4, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 4, 2010

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

Searchable as RT78202$

@p6rt
Copy link
Author

p6rt commented Oct 4, 2010

From @masak

<masak> rakudo​: sub Good ($time) { say "Good $time #perl6." }; Good
now # discovered by tylercurtis
<p6eval> rakudo 7c74c0​: OUTPUT«===SORRY!===␤Unable to parse blockoid,
couldn't find final '}' at line 22␤»
<masak> std​: sub Good ($time) { say "Good $time #perl6." }; Good now
<p6eval> std 237d266​: OUTPUT«ok 00​:01 119m␤»
* masak submits rakudobug
<masak> I know what this is. it's the whitespace thingy inside the
interpolator being too greedy/needy.
<masak> STD seems to get this right.
<masak> in Rakudo, the interpolator finds the ' #', thinks the rest of
the line is a comment, and then dies.
<masak> we've had other similar cases of Rakudo doing run-on interpolation.

@p6rt
Copy link
Author

p6rt commented Nov 20, 2012

From @FROGGS

looks good nowadays​:

<FROGGS> rakudo​: sub Good ($time) { say "Good $time #perl6." }; Good now
# discovered by tylercurtis
<p6eval> rakudo bf472b​: OUTPUT«Good Instant​:1353440186.178945 #perl6.␤»

@p6rt
Copy link
Author

p6rt commented Nov 20, 2012

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

@p6rt
Copy link
Author

p6rt commented Jan 15, 2014

From @coke

On Tue Nov 20 11​:36​:45 2012, FROGGS.de wrote​:

looks good nowadays​:

<FROGGS> rakudo​: sub Good ($time) { say "Good $time #perl6." }; Good now
# discovered by tylercurtis
<p6eval> rakudo bf472b​: OUTPUT«Good Instant​:1353440186.178945 #perl6.␤»

Test added in S02-literals/string-interpolation.t
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 15, 2014

@coke - Status changed from 'open' 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