Re: Re: clrhash does not reset count?

Roger Corman <[email protected]> Fri, 27 Jun 2003 14:32:16 -0700
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
I will try to post a clrhash patch soon. Thanks for reporting the problems with it.
I will also check to see if there are other places that need to be fixed re hashtable counts.

Roger

At 02:58 AM 6/20/2003 +0000, you wrote:
>Also clrhash return nil! In the hyperspec:
>
>Removes all entries from hash-table, and then returns that empty hash 
>table.
>
>Hans-Peter
>
>
>--- In [email protected], JP Massar <massar@a...> wrote:
>> At 10:47 AM 6/19/03, hpwickern wrote:
>> >Luke, thanks for the hint.
>> >I add the bugfix, but still not resetting count!
>> 
>> It's just broken.  There appear to be various places in the code 
>that
>> should be resetting the COUNT field of the hash table structure but
>> just aren't.
>> 
>> If you just need a hack fix then call this function instead of hash-
>table-count
>> 
>> (defun hack-htc (ht)
>>    (let ((c 0)) (maphash #'(lambda (k v) (declare (ignore k v)) 
>(incf c)) 
>> ht) c))
>> 
>> 
>> Otherwise you'll need to go through the hash table code and make the
>> necessary mods.
>
>
>
>To unsubscribe from this group, send an email to:
>[email protected]
>
> 
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/9lAzoD/PLNGAA/witMAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/