Navigation Menu

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

Null PMC access when evaluating interpolating string with empty block in Rakudo #1891

Closed
p6rt opened this issue Jun 28, 2010 · 5 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 28, 2010

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

Searchable as RT76234$

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @masak

<cognominal> rakudo​: "{}" # :)
<p6eval> rakudo 05684c​: OUTPUT«Null PMC access in get_string() [...]
* masak submits rakudobug
<masak> cognominal++

@p6rt
Copy link
Author

p6rt commented Jul 15, 2010

From @jnthn

On Mon Jun 28 03​:49​:40 2010, masak wrote​:

<cognominal> rakudo​: "{}" # :)
<p6eval> rakudo 05684c​: OUTPUT«Null PMC access in get_string() [...]
* masak submits rakudobug
<masak> cognominal++

Works now​:

15​:07 <@​jnthn> rakudo​: say "a {} b"
15​:07 <+p6eval> rakudo 727782​: OUTPUT«a b␤»
15​:08 <@​jnthn> rakudo​: say "{}"
15​:08 <+p6eval> rakudo 727782​: OUTPUT«␤»

Giving to moritz++ for spectests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Jul 15, 2010

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

@p6rt
Copy link
Author

p6rt commented Jul 15, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S02-literals/string-interpolation.t

commit 34d975a16ed97d91998ebac76d096293c6cdbfe7
Author​: moritz <moritz@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Thu Jul 15 19​:00​:56 2010 +0000

  [t/spec] test for RT #​76234, interpolating empty block into a string
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;31713 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S02-literals/string-interpolation.t b/t/spec/S02-literals/string-interpolation.t
index 2b3a085..5c672fd 100644
--- a/t/spec/S02-literals/string-interpolation.t
+++ b/t/spec/S02-literals/string-interpolation.t
@@ -24,6 +24,9 @@ plan *;
     my $a = 3;
     ok "$a" ~~ Str, '"$a" results in a Str';
     ok "{3}" ~~ Str, '"{3}" results in a Str';
+
+    # RT #76234
+    is "{}", '', 'Interpolating an empty block is cool';
 }
 
 my $rt65538_in = qq[line { (1,2,3).min }

@p6rt
Copy link
Author

p6rt commented Jul 15, 2010

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jul 15, 2010
@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