digitalmars.D.bugs - [AA] Implementation not conforming to specs
-
Manfred Nowak
(15/15)
Apr 19 2005
- Thomas Kuehne (11/22) Apr 19 2005 -----BEGIN PGP SIGNED MESSAGE-----
<docs href="http://www.digitalmars.com/d/arrays.html#associative"> .rehash Reorganizes the associative array in place </docs> <phobos href="\dmd\src\phobos\internal\aaA.d"> aaA*[] _aaRehash(aaA*[]* paa, TypeInfo keyti) // ... newaa = new aaA*[len]; // ... return newaa; </phobos> Obviously the promise of the specs currently is not true ... and I do not believe, that there is any data structure that can hold the promise and also has a need for a "rehash" operation which implies a hash table, otherwise it should be called "reorg". -manfred
Apr 19 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Manfred Nowak schrieb am Tue, 19 Apr 2005 20:36:38 +0000 (UTC):<docs href="http://www.digitalmars.com/d/arrays.html#associative"> .rehash Reorganizes the associative array in place </docs> <phobos href="\dmd\src\phobos\internal\aaA.d"> aaA*[] _aaRehash(aaA*[]* paa, TypeInfo keyti) // ... newaa = new aaA*[len]; // ... return newaa; </phobos> Obviously the promise of the specs currently is not true ...Updated http://dstress.kuehne.cn/run/rehash_01.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCZX6o3w+/yD4P9tIRAtCSAKCgTXVlRUErVFYsa5ZC7YiAEf/1wQCaA2/g 5AoGJ3AvGSSljq2awem3O18= =7fnG -----END PGP SIGNATURE-----
Apr 19 2005