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

dotty:<.=> and infix:<.=> inconsistent #1020

Closed
p6rt opened this issue May 26, 2009 · 4 comments
Closed

dotty:<.=> and infix:<.=> inconsistent #1020

p6rt opened this issue May 26, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented May 26, 2009

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

Searchable as RT66034$

@p6rt
Copy link
Author

p6rt commented May 26, 2009

From @jnthn

01​:21 <@​jnthn> rakudo​: my %h = B => 2; my $x = "ABC"; $x .=
subst(/(<[BD]>)/,
{%h{$0}},​:global); say $x;
01​:21 < p6eval> rakudo 695300​: OUTPUT«A2C␤»
01​:21 <@​jnthn> rakudo​: my %h = B => 2; my $x = "ABC"; $x.=subst(/(<[BD]>)/,
{%h{$0}},​:global); say $x;
01​:21 < p6eval> rakudo 695300​: OUTPUT«Use of uninitialized value␤Use of
uninitialized value␤AC␤»
01​:21 <@​jnthn> Nailed it.
01​:21 < DanielC> spaces?
01​:22 <@​jnthn> DanielC​: Bit more to it than that. Those two actually parse
differently.
01​:22 <@​jnthn> But should be behaviourly equivalent.
01​:22 <@​jnthn> So, Rakudo bug.

@p6rt
Copy link
Author

p6rt commented May 4, 2010

From @masak

On Tue May 26 16​:24​:25 2009, jnthn@​jnthn.net wrote​:

01​:21 <@​jnthn> rakudo​: my %h = B => 2; my $x = "ABC"; $x .=
subst(/(<[BD]>)/,
{%h{$0}},​:global); say $x;
01​:21 < p6eval> rakudo 695300​: OUTPUT«A2C␤»
01​:21 <@​jnthn> rakudo​: my %h = B => 2; my $x = "ABC"; $x.=subst(/(<[BD]>)/,
{%h{$0}},​:global); say $x;
01​:21 < p6eval> rakudo 695300​: OUTPUT«Use of uninitialized value␤Use of
uninitialized value␤AC␤»
01​:21 <@​jnthn> Nailed it.
01​:21 < DanielC> spaces?
01​:22 <@​jnthn> DanielC​: Bit more to it than that. Those two actually parse
differently.
01​:22 <@​jnthn> But should be behaviourly equivalent.
01​:22 <@​jnthn> So, Rakudo bug.

At this point, $/ doesn't work well in subst-closures. However, the real cause for the RT
ticket has been fixed​:

$ perl6 -e 'my %h = B => 2; my $x = "ABC"; $x .= subst(/(<[BD]>)/, %h<B>, :global); say
$x;'
A2C

$ perl6 -e 'my %h = B => 2; my $x = "ABC"; $x.=subst(/(<[BD]>)/, %h<B>, :global); say $x;'
A2C

Resolving ticket.

@p6rt
Copy link
Author

p6rt commented May 4, 2010

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

@p6rt
Copy link
Author

p6rt commented May 4, 2010

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

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