Michael Lazzaro wrote:

The next (oft-asked) question is whether or not C<is computed> denotes read-only, or if you can store to an C<is computed> array.

my @a is computed { $^index**2 };

@a[4] = 'something completely different';
I'd expect that C<is computed> and C<is constant> would be orthogonal.


And things like this would be downright hysterical:

   my @a is computed { $^index**2 };

   pop @a;
Returns 1, of course. Since the $^index for a C<pop> is always -1.

;-)

Damian


Reply via email to