Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbatt!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP Newsgroups: news.software.b,comp.lang.c Subject: Re: News for Xenix on PC AT ? Message-ID: <2433@ncoast.UUCP> Date: Tue, 28-Apr-87 22:14:13 EDT Article-I.D.: ncoast.2433 Posted: Tue Apr 28 22:14:13 1987 Date-Received: Fri, 1-May-87 07:06:15 EDT References: <18346@ucbvax.BERKELEY.EDU> <145@sds.UUCP> <17005@sun.uucp> <146@sds.UUCP> <5787@brl-smoke.ARPA> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: news.software.b Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 30 Xref: utgpu news.software.b:551 comp.lang.c:1913 As quoted from <5787@brl-smoke.ARPA> by gwyn@brl-smoke.ARPA (Doug Gwyn ): +--------------- | I will agree that writing | if ( !pointer ) | is bad style, but it is nonetheless technically correct. If your compiler | can't handle this, then it is broken; perhaps you should try to get it fixed. +--------------- HAH!!! The System V.2 pcc is the first version that gets this correct consistently; in fact, it's the first version that gets "if (!x)" for any x which may not necessarily be constrained to values in the set {0, 1} correct. (You would not believe the problems I've had bringing up phantasia under Xenix 2.3 and 3.0 for Tandy 6000 and under System III for Plexus, due to this.) As a result, whether it's ``technically correct'' or not I refuse to use that feature in my own programs, in the interests of allowing people using old pcc's to compile my programs. I don't know what the heck pcc was doing before (or what it's doing now; I wouldn't trust it as far as I could throw it) but we aren't the only ones that use it. I just pray daily for Plexus to release V.3 with the Green Hills compiler. ++Brando -- Brandon S. Allbery {decvax,cbatt,cbosgd}!cwruecmp!ncoast!allbery Tridelta Industries {ames,mit-eddie,talcott}!necntc!ncoast!allbery 7350 Corporate Blvd. necntc!ncoast!allbery@harvard.HARVARD.EDU Mentor, OH 44060 +01 216 255 1080