On Thu, Apr 19, 2001 at 10:52:36PM +0900, ts wrote:
> >>>>> "M" == Marko Schulz <in6x059 / public.uni-hamburg.de> writes:
> 
> M> But this could be solved by an educated guess: If an object of a
> M> subclass of Integer is used, create an array, otherwise a hash.
> 
>   You can't do this. Just an example, for bdb you have 2 classes
> 
>   BDB::Recno  hash like but indexed by Integer. It *really* work like an
>   Hash, because when you delete a key, Berkeley DB don't renumber the
>   keys. 
> 
>   BDB::Recnum array like (indexed by Integer). In this case (with a
>   special flag when you open the file) Berkeley DB renumber the keys when
>   you delete a key, This mean that it *really* work like an Array

This explains why it cannot be done to vivify BDB::Recnos, those still
would have to be created explicitly. I still don't really see reasons
why it cannot be done for the original arrays and hashes.

-- 
marko schulz

                          Dieser Satz beinhalten drei Fehller.