Elizabeth Mattijsen via RT wrote:
>The *only* way to keep Nil in here, is to make it the default:

There's also binding:

> my @a; @a[0] := Nil
Nil
> @a[0]
Nil

>I'm not sure we want to do that for all Array coercions,

It's not required for all Array coercions.  Only where there's a Nil
element value.

>or for all Array creation for that matter (seeing RT #130963).

That one's even more open.  Although it's rather surprising behaviour
for the [] Array constructor to mangle Nil (since it doesn't overtly
involve assignment), I didn't commit to that being the part with the bug.
If you'd prefer for [] to keep the Nil manglement, it's open to Array.perl
to emit more complex code that doesn't just feed the Nil to [].

-zefram

Reply via email to