QL C: The Two Versions

See all articles from SMUG Bytes v6 n2
Author(s): Lloyd Dreger
Publication: SMUG Bytes
Pub Details: SMUG Bytes v6 n2 (Volume 6, Issue 2)
Date: February 1989
Pages: 7-8

The problem with using language other than Basic on a 2068 or a QL machine is that such a language has to be compiled after it is written. This is true of Fortran, Forth, Pascal, C or what have you. This means investing in a compiler and an editor at the very minimum. Most of the time a word processor can’t be used as it has a special character other than CHAR (13) for an end of line character.

Now, there are compilers and there are compilers. For an example, we here at SMUG looked into learning an advanced lauguage on the QL and after going into some in-depth research found that the original Superbasic of the QL was designed with the C language in mind as lots of the concepts are right from the C language. Further investigation showed “C” contains the entire Pascal language. Two compilers for C are available: Lattice C (Metacomco) and Digital C. What a difference between the two in capability and conformity to standardized C. C source files are supposed to be compatible with any compiler if they conform to standard C–you can load them into any type of a computer, recompile them and they should run. Lattice C is such a compiler. Digital C is not. It uses a bastardized form of notations for handling floating point numbers (any decimal point number) WITH only half a page of explanation of how to use the %*@*/? thing.

This is what I call a disservice to the poor end user. If deviating from the accepted norm you must spend time explaining all the deviations to the poor user –in full detail. At times, the manual will skip over these so called changes or just explain it poorly and briefly. Even an expert would have a hard time figuring it out, much less the poor novice who is just getting his feet wet with his first attempt at another language.

I have found this more than once in the so called basic simplified editions of other languages. It gives this poor guy the idea that he will never get it to working properly. Generally he gives up, chucks the whole idea of learning anything new and we have lost another soul because of academic professorilism (assuming the student knows something that you havn’t discussed–the so called “and it is obvious”). A word to the wise, if it doesn’t come with a 1 inch thick double sided page manual it’s not worth it. Or to put it another way, “Don’t buy simplified cut down versions for a starter. They have taken too many shortcuts to cut it down.”

Yes, I do have a bitter taste for Digital C.