Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: Of Standards and Inventions: A Cautionary Tale Message-ID: <10353@steinmetz.ge.com> Date: 11 Apr 88 14:34:52 GMT References: <10949@mimsy.UUCP> <1525@dataio.Data-IO.COM> <7637@brl-smoke.ARPA> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 18 In article <7637@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: | [...] | We didn't want to mandate that the preprocessor be integrated into the | language parser proper. I agree that the language would be nicer if | it WERE so integrated, but for historical reasons it wasn't. This would be true for sizeof a user type or variable, but certainly not for a predefined type, such as sizeof int. With programs traveling between 32 bit machines and 16 bit machines (286, 11s) I want to say: #if sizeof int < 32 #define INT long #else #define INT int #endif -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me