This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (8 messages)
Change of address
Message #66474
Please all distribute this notice far and wide! To all users of any of my software (Draco, Amiga Empire, Dis package, etc.): I have just recently finished moving, so my mailing address has changed The new address (note: only the apartment number has changed) is: Chris Gray Apt. 808 8515-112…
#60038-
C coding style
Message #60265
Letting TABs expand to the indent amount that you want mostly works fine for program source (except of course inside strings), but what about other kinds of files. My editor automatically compresses whitespace into appropriate sequences of TABs and spaces, as do most UNIX editors. If you change your tabstops,…
For programming on the Amiga, or UNIX, or, I suspect, most other computer systems nowadays, using a 4 character indent will save you a fair amount of file space. Each pair of indents is then a single tab, which is one byte instead of 8. If you use 3 or…
Thanks! I only hope I don't spend TOO much time here. Then I would fade away into someone who has no time to write more programs!
Thanks. I think I can remember the convention – it sounds straightforward.
Oh, ick! – it reformatted it for me. Could some kind soul tell this poor CIS beginner how to tell the forum to keep my spacing at the beginning of lines? It did ok for the first bit, but then messed up. Was it the mismatched parentheses?
You realize of course that indentation styles are a matter of religion? The ONE CORRECT WAY to write a 'do-while' in C is: do { statements; } while (condition); 1) there is no point in using a separate line for the braces – they are intimitely bound to the statement…
I have also been unhappy with C's lack of a nice 32/16/8 hierarchy of types. Historically, C had 8 bit char's (signed of course – PDP-11), 16 bit ints and 32 bit longs. I had no qualms about being incompatible with C when I put 32/16/8 bit signed and unsigned…