[sword-devel] Bug with TOP (duplicate keys)
Wed, 17 Jul 2002 03:29:19 +0600
You misunderstood. The point is that despite I add the A key only once, it is
This is the file test.dat:
> 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@example.com)