Re: [q-lang-users] Association lists
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-02-21 10:09:44
|
Jiri Spitz wrote: > It is now reformatted. I hope the code is still reasonably readable and > that I didn't introduce any error. Ok, thanks a lot. I did some more reformatting so that the layout is more in line with the rest of the library, and fixed a couple of minor bugs and typos. I also removed the do/map stuff in dict.q (while this might be useful, I'd prefer the new version to be a drop-in replacement for the old one for now). It is in cvs now. There's still a minor issue with the inserta/deletea operations, however. The problem is that you used syntactic equality (foo X X = ...) rather than (=) to decide equality of two key values. That will be ok in most cases (hdict should be fine as the real key there is always an integer), but for dict/bag/set you don't know what the actual key type is, it may be *any* ordered type, and some key types might well use a version of (=) which goes beyond simple syntactic equality, see "Non-Linear Equations" in the manual [http://q-lang.sourceforge.net/qdoc/qdoc_7.html#SEC42] for an explanation. I'll try to fix this (shouldn't be too difficult) and give it a first test drive with a couple of my programs. If that works ok I'll upload a new release candidate later today. Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |