Skip Menu |
Report information
Id: 130432
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

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



Subject: [REGRESSION] Changed behavior when assigning to array but not providing all elements (@b[1, 2, 3] = True)
Download (untitled) / with headers
text/plain 561b
Code: my @b; @b[1, 2, 3] = True; @b.perl.say Result (2015.10): [Any, Bool::True, Any, Any] Result (2015.11,2015.12,2016.02,2016.03,2016.04,2016.05,2016.06,2016.07.1,2016.08.1,2016.09,2016.10): [Any, Bool::True, Mu, Mu] Result (2016.11,2016.12,HEAD): [Any, Bool::True, Any, Any] I have no idea which behavior is right, but perhaps this ticket will help to add a test (so that we are not swinging back and forth between different behaviors). Output on 2015.10 is shown for reference only, just to demonstrate that we already had this behavior at some point.
On 2016-12-28 19:26:16, alex.jakimenko@gmail.com wrote:
Show quoted text
> Code:
> my @b;
> @b[1, 2, 3] = True;
> @b.perl.say
>
>
> Result (2015.10):
> [Any, Bool::True, Any, Any]
>
> Result
> (2015.11,2015.12,2016.02,2016.03,2016.04,2016.05,2016.06,2016.07.1,2016.08.1,2016.09,2016.10):
> [Any, Bool::True, Mu, Mu]
>
> Result (2016.11,2016.12,HEAD):
> [Any, Bool::True, Any, Any]
>
>
> I have no idea which behavior is right, but perhaps this ticket will
> help to add a test (so that we are not swinging back and forth between
> different behaviors). Output on 2015.10 is shown for reference only,
> just to demonstrate that we already had this behavior at some point.


Ah, by the way, the latest change was introduced in https://github.com/rakudo/rakudo/commit/c541b3ed38752d1be9a7f9ab0ad2c07f36c30aeb
Pre-6c change was in https://github.com/rakudo/rakudo/commit/d192f1c29a6297b2607e512e65022fbe4ad5771c

Both commits do not indicate that anything like this should've been changed, therefore a ticket.


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