[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: exists $foo[7] and delete $foo[7]
Mark Mielke writes:
> But wait... you can ALREADY do things with sparse arrays...
>
> $a[500] = 1;
>
> Does NOT allocate 501 SV's. It allocates exactly one. The internal array
> underneath may actually be "501 * sizeof(void *)" bytes big... but who
> cares? Did the user worry about it before?
Try
$a[500_000_000] = 1;
and then talk again about Perl already having sparse arrays and
the internal array underneath not being important.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
- Follow-Ups from:
-
"Mark Mielke" <markm@nortelnetworks.com>
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
Bart Schuller <schuller@lunatech.com>
Ted Ashton <ashted@southern.edu>
"Mark Mielke" <markm@nortelnetworks.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]