You misunderstood. The point is that despite I add the A key only once, it is 
printed twice.

This is the file test.dat:

A
aaa

B
bbb

C
ccc

> Actually, I'm not quite sure how duplicate keys are getting added.  This 
> seems to be the real bug, IMO.  The api is not currently equipped with 
> logic to handle such things.  If the module is positioned to, say 'A', 
> and text is set with operator<<(const char *)  The module should 
> overwrite the entry, NOT add a new 'A' entry.
> 
> Interesting in what you think about this.

P.S. About overwriting vs duplicate entries: personally I found a way how I can deal 
without several entries with the same key. But see std::multimap for the idea of 
possible design of libSword 2.
-- 
Victor Porton ([EMAIL PROTECTED])

Reply via email to