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

binding to a list fails #3459

Open
p6rt opened this issue Jul 22, 2014 · 3 comments
Open

binding to a list fails #3459

p6rt opened this issue Jul 22, 2014 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 22, 2014

Migrated from rt.perl.org#122369 (status was 'open')

Searchable as RT122369$

@p6rt
Copy link
Author

p6rt commented Jul 22, 2014

From @coke

S03-binding/scalars.t has a test that currently fails with "Cannot use
bind operator with this left-hand side"

  my $a = "a";
  my $b = "b";

  ($a, $b) := ($b, $a);
  is($a, 'b', '$a has been changed to "b"');
  is($b, 'a', '$b has been changed to "a"');

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 12, 2016

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

@p6rt
Copy link
Author

p6rt commented May 12, 2016

From @smls

Assignment works​:

  ($a, $b) = ($b, $a);

So does binding to a signature​:

  :($a, $b) := ($b, $a);

Maybe the test precedes the GLR?
Should probably check with jnthn if it still makes sense.

@p6rt p6rt added the at_larry label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant