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

$/ is de-defined in if blocks in rakudo #228

Closed
p6rt opened this issue Aug 12, 2008 · 6 comments
Closed

$/ is de-defined in if blocks in rakudo #228

p6rt opened this issue Aug 12, 2008 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Aug 12, 2008

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

Searchable as RT57858$

@p6rt
Copy link
Author

p6rt commented Aug 12, 2008

From @masak

r30183​:
$ ./perl6 -e '"yo" ~~ /yo/; say $/' # works
yo

$ ./perl6 -e 'if "yo" ~~ /yo/ { say $/ }' # worksn't
Null PMC access in get_string()
[...]

$ ./perl6 -e '"foo" ~~ /foo/; if 42 { say $/ }'
Null PMC access in get_string()
[...]

@p6rt
Copy link
Author

p6rt commented Aug 24, 2008

From @moritz

Rakudo r30499​:

my $str = 'foo <TMPL_VAR NAME=STUFF> <dsadf ';
if ( $str ~~ /'<'/ ) {
  say $/.WHAT;
}

Null PMC access in get_string()
current instr.​: 'print' pc 13098 (src/gen_builtins.pir​:8311)
called from Sub 'say' pc 13120 (src/gen_builtins.pir​:8321)

my $str = 'foo <TMPL_VAR NAME=STUFF> <dsadf ';
my @​tokens;
if ( $str ~~ /'<'/ ) {
  push @​tokens, $/;
}

Null PMC access in type()
current instr.​: '_block24' pc 282 (EVAL_14​:107)
called from Sub '_block11' pc 70 (EVAL_14​:29)

--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/

@p6rt
Copy link
Author

p6rt commented Aug 25, 2008

From @masak

This is most likely a direct consequence of #​57858​: "$/ is de-defined in
if blocks in rakudo".

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

From @jnthn

Hi,

All broken examples in this ticket now work as or r22207.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

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

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

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

@p6rt p6rt closed this as completed Sep 11, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant