[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] hash table questions
From: |
Kon Lovett |
Subject: |
Re: [Chicken-users] hash table questions |
Date: |
Thu, 22 Nov 2012 19:40:44 -0800 |
On Nov 22, 2012, at 7:32 PM, Kon Lovett <address@hidden> wrote:
>
> On Nov 22, 2012, at 4:56 PM, Claude Marinier <address@hidden> wrote:
>
>> Greetings fellow Schemers,
>
<snip>
>> or would it just create a new record without complaining? This would look
>> like duplicate keys but they would be different.
>
> The builtin hash will treat a u8vector & a vector of fixnum differently.
>
> I suggest using a vector of fixnum as your IP-addr representation. I am
> doubtful that records as keys are correctly processed.
Sorry, no doubts. Never mind.
> ex: (vector 192 168 1 16)
I retract this suggestion.
>
>>
>> I assume that hash-table-for-each will present each key / record pair once
>> and do so in some arbitrary order.
>
> Yes.
>
>>
>> Can I assume that dump-IPv4-record, when it calls IPv4-address->string, will
>> choke on a key which is not a u8vector?
>
> Yes.
>
>>
>>
>>
>> I am looking for the mistake I made which is producing the illusion of a
>> duplicate key in the hash table. I believe that confirming my assumptions is
>> a good starting point.
>>
>> I hope this sort of question is not abusing the list members.
>>
>> Thank you for your patience.
>>
>> --
>> Claude Marinier
>>
>> _______________________________________________
>> Chicken-users mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/chicken-users
>