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

Quoted >> raises false error about right-shift #1784

Closed
p6rt opened this issue May 24, 2010 · 7 comments
Closed

Quoted >> raises false error about right-shift #1784

p6rt opened this issue May 24, 2010 · 7 comments

Comments

@p6rt
Copy link

p6rt commented May 24, 2010

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

Searchable as RT75320$

@p6rt
Copy link
Author

p6rt commented May 24, 2010

From david.green@telus.net

Use of ">>" in a double-quoted string gets incorrectly recognised as an attempt to use the P5 right-shift operator​:

  my $x; say "$x >> ";
  Unsupported use of >> to do right shift; in Perl 6 please use +> or ~> at line 1, near "\""

Note the trailing space; other characters (or none) after the >> works. Also, » or << are OK.
(See also RT#​66888)

@p6rt
Copy link
Author

p6rt commented Aug 11, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 4, 2011

From @coke

On Mon May 24 10​:50​:57 2010, david.green@​telus.net wrote​:

Use of ">>" in a double-quoted string gets incorrectly recognised as
an attempt to use the P5 right-shift operator​:

my $x; say "$x >> ";
Unsupported use of >> to do right shift; in Perl 6 please use \+>

or ~> at line 1, near "\""

Note the trailing space; other characters (or none) after the >>
works. Also, � or << are OK.
(See also RT#​66888)

This is still happening in rakudo 7408d6.

--
Will "Coke" Coleda

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 4, 2011

From @coke

On Mon May 24 10​:50​:57 2010, david.green@​telus.net wrote​:

Use of ">>" in a double-quoted string gets incorrectly recognised as
an attempt to use the P5 right-shift operator​:

my $x; say "$x >> ";
Unsupported use of >> to do right shift; in Perl 6 please use \+>

or ~> at line 1, near "\""

Note the trailing space; other characters (or none) after the >>
works. Also, � or << are OK.
(See also RT#​66888)

This is still happening in rakudo 7408d6.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Mar 8, 2013

From @jnthn

On Mon May 24 10​:50​:57 2010, david.green@​telus.net wrote​:

Use of ">>" in a double-quoted string gets incorrectly recognised as
an attempt to use the P5 right-shift operator​:

my $x; say "$x >> ";
Unsupported use of >> to do right shift; in Perl 6 please use \+>

or ~> at line 1, near "\""

Note the trailing space; other characters (or none) after the >>
works. Also, � or << are OK.
(See also RT#​66888)

Works correctly now​:

my $x = 42; say "$x >> ";
42 >>

Probably has since the quotes refactor last year, but the ticket got
missed until now. Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Mar 15, 2013

From @timo

test committed in roast​: e143018

@p6rt
Copy link
Author

p6rt commented Mar 15, 2013

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

@p6rt p6rt closed this as completed Mar 15, 2013
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant