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

Degenerate unspace does not work in Rakudo #372

Closed
p6rt opened this issue Oct 26, 2008 · 5 comments
Closed

Degenerate unspace does not work in Rakudo #372

p6rt opened this issue Oct 26, 2008 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 26, 2008

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

Searchable as RT60148$

@p6rt
Copy link
Author

p6rt commented Oct 26, 2008

From @masak

Rakudo r32141 can understand unspaces consisting of a backslash
followed by whitespace, but not unspace consisting of only a
backslash.

$ ./perl6 -e 'my %h; %h{"key"} = "value"; say %h\ {"key"}' # works fine
value
$ ./perl6 -e 'my %h; %h{"key"} = "value"; say %h\{"key"}' # fails
Statement not terminated properly at line 1, near "\\{\"key\"}"
[...]

Same result for e.g. $a\++;

S02 says that both of the above should work and be eqivalent.

@p6rt
Copy link
Author

p6rt commented Oct 27, 2008

From @pmichaud

On Sun, Oct 26, 2008 at 01​:00​:03PM -0700, Carl Mäsak wrote​:

Rakudo r32141 can understand unspaces consisting of a backslash
followed by whitespace, but not unspace consisting of only a
backslash.

$ ./perl6 -e 'my %h; %h{"key"} = "value"; say %h\ {"key"}' # works fine
value
$ ./perl6 -e 'my %h; %h{"key"} = "value"; say %h\{"key"}' # fails
Statement not terminated properly at line 1, near "\\{\"key\"}"
[...]

Same result for e.g. $a\++;

S02 says that both of the above should work and be eqivalent.

STD.pm r22787 says it's a parse failure, and we're following that.

  19​:13 <pmichaud> std​: my %h; %h{"key"} = "value"; say %h\{"key"};
  19​:13 <p6eval> std 22787​: OUTPUT[parse failure␤]

So I suspect it's a bug in STD.pm, also.

Pm

@p6rt
Copy link
Author

p6rt commented Oct 27, 2008

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

@p6rt
Copy link
Author

p6rt commented Jan 26, 2009

From @masak

This works with r35994. Resolving.

@p6rt
Copy link
Author

p6rt commented Jan 26, 2009

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

@p6rt p6rt closed this as completed Jan 26, 2009
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