Skip Menu |
Report information
Id: 122369
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: coke <will [at] coleda.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Tue, 22 Jul 2014 12:26:48 -0400
To: rakudobug [...] perl.org
From: Will Coleda <will [...] coleda.com>
Subject: Cannot swap variables via a bind
Download (untitled) / with headers
text/plain 282b
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
Download (untitled) / with headers
text/plain 196b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org