Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site reed.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!tektronix!reed!alexis From: alexis@reed.UUCP (Alexis Dimitriadis) Newsgroups: net.lang Subject: Re: Standardization Message-ID: <1155@reed.UUCP> Date: Sat, 23-Mar-85 18:13:09 EST Article-I.D.: reed.1155 Posted: Sat Mar 23 18:13:09 1985 Date-Received: Wed, 27-Mar-85 02:52:02 EST References: <322@gumby.UUCP> <7025@watdaisy.UUCP> <6360@boring.UUCP> Reply-To: alexis@reed.UUCP (PUT YOUR NAME HERE) Distribution: net Organization: Reed College, Portland, Oregon Lines: 41 Summary: In article <6360@boring.UUCP> jack@boring.UUCP (Jack Jansen) writes: [...] > Although you will have a *lot* of trouble to simulate 'chdir' if >your target machine doesn't have directories, you can probably still >come up with something. If your Pascal compiler doesn't have >'otherwise' or something similar, you have to change even the >structure of the program. > > I know of no such syntactical differences in C compilers, maybe with >the exception of multiple defined externs (which you shouldn't have used >anyway), and long identifiers. Both of these are much less serious >than the differences in Pascal-flavors. The list gets longer if you throw in things like structure assignment, passing/returning structures, etc, which are not supported by older (but still in use) C compilers. A more serious problem, in my opinion, is the fact that an integer may or may not be the same size as a short and/or a long. Sure, a program developed on a VAX (sizeof int == sizeof long) will compile on a PDP, (sizeof int < sizeof long) but that is small comfort. Of course, both compilers adhere to the standard, but the semantics of short/int/long are nevertheless different. And it is VERY hard to keep longs and ints straight if, on your machine, they are interchangeable. At least with Pascal you can usually (lazy i/o and string input to the contrary), expect a program that will compile without error to run correctly. By the way, the lack of a closely followed standard for Pascal has been discussed in net.lang.pascal (and net.lang.c!). It seemed absolutely clear that (almost) no implementations follow the letter of the standard. Alexis Dimitriadis -- _______________________________________________ alexis @ reed ...ihnp4!{harvard|tektronix}!reed ...decvax!tektronix!reed ...teneron!reed