4 ms·
I chose C (Turbo-C) because it was much better at strings than Pascal: specifically it had strdup() and their length was not limited to 255 characters. Also C
by jhallenworld 3y ago
I chose C (Turbo-C) because it was much better at strings than Pascal: specifically it had strdup() and their length was not limited to 255 characters. Also C had escape sequences- actually Turbo Pascal had them, not sure about standard Pascal.
I think earlier versions of Pascal had only fixed length space padded strings.
Yeah, 6809 and 8088 (arguably an 8-bit CPU) supported C just fine. The other 8-bits, not so much. I wish the CoCo had been a better computer than it was (crappy keyboard, not a real serial port, terrible video). My Atari 800XL was better except for its CPU.
- PaulHoule 3y agoStrings with maximum length are a bummer but null terminated strings have their own problems and are part of the whole "unsafe at any speed" nature of C. The thing about the CoCo was that Radio Shack sold an absurd number of peripherals for it. I got a "multi-pak" which would let me plug in four devices to the cartridge slot and I had a real UART for it. The built-in sound was awful but you could get an Orchestra-90, a speech synthesizer cartridge, etc. Most of the hardware and software at the time supported hardware flow control which made the bit-banger serial report more reliable than you might think at low speeds. The video was a real problem, I think a lot of software didn't get ported to the Coco because everybody thought 40 column text was bad enough, who wants to deal with 32? For instance I never saw the Infocom games being available for the Coco although I found out just recently that Infocam had made a Z-Machine interpreter for it. Eventually they came out with a Coco 3 that had 80 column text and high resolution modes with a lot of colors but it was getting late at that point.
- jacquesm 3y agoWe (my friend and myself who had identical machines) managed to squeeze 64x32 (256x192, so the font (4x6!) wasn't exactly spectacular but it worked well enough for real use) out of the 'high res' monochrome graphics mode (PMODE 4) and that really made life easier.
- pjmlp 3y agoThe fixed string were a thing in ISO Pascal, most dialects had better string support, and even ISO Extended Pascal ended up improving them, although by then no one cared.
- jacquesm 3y agoThere was a UK clone of the CoCo that had a half decent keyboard, the Dragon 32 (actually: it had 64K if you tickled it just so).