On Nov 22, 2012, at 7:32 PM, Kon Lovett <konlov...@gmail.com> wrote:
> > On Nov 22, 2012, at 4:56 PM, Claude Marinier <claudem...@gmail.com> 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 >> Chicken-users@nongnu.org >> https://lists.nongnu.org/mailman/listinfo/chicken-users > _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users