Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!bs From: bs@alice.UUCP (Bjarne Stroustrup) Newsgroups: net.lang.c Subject: Re: condition convention 'if (10 == j)...' Message-ID: <3677@alice.UUCP> Date: Wed, 1-May-85 09:44:38 EDT Article-I.D.: alice.3677 Posted: Wed May 1 09:44:38 1985 Date-Received: Thu, 2-May-85 01:44:13 EDT References: <137@bocklin.UUCP> <>, <573@udenva.UUCP> Organization: Bell Labs, Murray Hill Lines: 6 It is silly to warp ones programs to overcome language and/or compiler deficiencies (though sometimes necessary). As mentioned before on the net, it is however trivial for a C compiler to detect most occurrences of the if (j = 10) bug. For example, on seeing that the C++ compiler issues this: "warning: constant assignment in condition"