April 19, 2005 [AA] Implementation not conforming to specs | ||||
---|---|---|---|---|
| ||||
<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 |
April 19, 2005 Re: [AA] Implementation not conforming to specs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | -----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----- |
Copyright © 1999-2021 by the D Language Foundation