> > The Loki library certainly has one, but I think that this one is > > perfectly acceptable. It was written by Yonat Sharon: > > http://ootips.org/yonat/ I just used boost::shared_ptr internally rather > > than his hand-written equivalent. I have changed the authorship of the > > file appropriately ;-)
> Thanks for the link! IIRC Micro$oft Extended Color Basic used > precisely COW for its string heap (yes I'm *that* old :-) So you did interface to the string heap from assembly or C, right? peeking and poking was a lot of fun :) BTW the guy/gal who invented names of peek and poke should be honoured somewhere. Maybe in a BSDM hall of fame. I did use gwbasic on PC's quite some (which is probably very similar to extended color basic IIRC). Then I switched to QuickBasic. Then to TurboPascal, then to Ada and C++ :) I didn't have the (mis-)pleasure of using M$ basic on non-x86 hardware. There were way better basic systems out there at the time. Does anybody out there remember Z-basic? It was probably 5 times faster than any M$ basic ever was, and it did create both .com and .exe files that were too small to believe that they would work (yes, they were standalone). And if we're into basic, one should never forget the ABC-80 and subsequently ABC-800 machines made by Luxor AB (Sweden). I think that ABC-800 had the best performing basic I've ever seen on a 4MHz Z-80 system. Darn, this thing even had built-in ISAM (essentially an indexable database table), and I've seen a rather decently performing accounting package running on ABC-802 hooked to a central file storage server (it was CatNet if anybody would know of such a thing). In comparison to ABC-Basic, the standard stuff that came with e.g. ZX-Spectrum, or Amstrad CPCxxxx felt like as fast as running a LyX compile on a 486 system :) Just imagine a system with about 64kb of RAM, running an interpreter, having a built-in *auto-indenting* editor, and booting in about 15s (the time it took for the CRT to warm-up). Obviously, the mainboard was up and running in 2-3 seconds after first seeing the 5V supply :). The keyboard was mounted in a 1/4" (6mm) thick aluminum plate with 3 cutouts for key groups (function, main and numeric). The thing should have been classified as a white weapon I guess - it largely improved sense of security in your average office. Kidding aside, I've yet to see a keyboard so durable come standard with a PC. Even the "military" (ex-Dolch) PC's don't have such keyboards. Okay, I know, a Palm handheld "boots" much faster than 15s :) BTW, what about making lyx for PalmOS? Anybody? :) Or at least for qt-embedded? Cheers, Kuba Ober