Zoffix Znet via RT wrote:
>Looks to me it's not Nil it's losing, it's the `is default` that it's losing:
That's a reasonable way to look at it. Note that a binding also loses
its bindiness:
> my @a; @a[0] := Nil
Nil
> @a[0]
Nil
> @a.perl.EVAL[0]
(Any)
> @a.perl.EVAL[0] = 3
3
> @a[0] = 3
Cannot
On Thu, 09 Mar 2017 04:06:27 -0800, zef...@fysh.org wrote:
> > my @a is default(Nil); @a[0] = Nil
> Nil
> > @a[0]
> Nil
> > @a.perl.EVAL[0]
> (Any)
>
> .perl.EVAL fails to round-trip the Nil element value in the Array.
> Nil itself round-trips fine, so the failure here is specific to the Array.
>
# New Ticket Created by Zefram
# Please include the string: [perl #130963]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=130963 >
> my @a is default(Nil); @a[0] = Nil
Nil
> @a[0]
Nil
> @a.perl.EVAL[0]
(Any)
.perl.EVAL fails