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

Reply via email to