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

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

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



To: rakudobug [...] perl.org
From: Zefram <zefram [...] fysh.org>
Date: Sun, 13 Dec 2015 22:34:02 +0000
Subject: [BUG] deparsing is surprised by slip interpolation
Download (untitled) / with headers
text/plain 751b
With [perl #126897] fixed, deparsing of some kinds of structure containing Slip objects now runs into the interpolation of Slip objects into lists. This leads to round-trip failures: Show quoted text
> my @a = (11,22,33)
[11 22 33] Show quoted text
> @a[1] := slip(44,55)
(44 55) Show quoted text
> @a.perl
[11, slip(44, 55), 33] Show quoted text
> @a.perl.EVAL.perl
[11, 44, 55, 33] Show quoted text
> @a.List.perl
(11, slip(44, 55), 33) Show quoted text
> @a.List.perl.EVAL.perl
(11, 44, 55, 33) Show quoted text
> @a.Slip.perl
slip(11, slip(44, 55), 33) Show quoted text
> @a.Slip.perl.EVAL.perl
slip(11, 44, 55, 33) The deparsing needs to take account of the interpolation, and produce output that either avoids it or corrects for it. Before [perl #126897], of course, round-tripping of these structures failed in the more obvious manner of turning the Slip into a List. -zefram


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