[mercury-users] hash_table module bug?

Ralph Becket rbeck at microsoft.com
Fri Sep 7 02:21:07 AEST 2001

> From: Peter Ross [mailto:peter.ross at miscrit.be]
> Sent: 06 September 2001 17:05
> To: mercury-users at cs.mu.OZ.AU
> Subject: Re: [mercury-users] hash_table module bug?
> On Thu, Sep 06, 2001 at 05:15:02PM +0200, Dominique de Waleffe wrote:
> >
> No, it is a bug in hash_table.
> Currently det_insert doesn't check to see whether or not the hash
> has been initialised yet like hash_table__set does.

That was fast: Pete gets a cigar!  I'll try to check in the fix 

> The work around would be to call hash_table__set for the first
> and then det_insert for the rest.

Just use hash_table__set/3 unless you really need to check you
aren't overwriting bindings in the hash table.

- Ralph
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe

More information about the users mailing list