Path: csiph.com!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C precedence - relative comparisons before equality operators Date: Mon, 06 Sep 2021 17:23:23 -0700 Organization: None to speak of Lines: 23 Message-ID: <87pmtlfd38.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b8e802e2add04d899fe3d6b194bea3aa"; logging-data="21906"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181/sDwGc4ApGIH5qB8UpsE" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:SOxOsawjC7i7K5ZOd48AkocL718= sha1:hJCE5396bBOe+xg4uvC/UcQ2sdY= Xref: csiph.com comp.lang.c:162654 James Harris writes: > On 05/09/2021 23:29, Stefan Ram wrote: >> James Harris writes: >>> Anyone know why the precedences were designed that way? >> The precedence of > < <= >= over == != was already >> present in B. > > Was that in just some versions of B? It looks as though relational and > equality comparisons are at the same level in > > https://www.thinkage.ca/gcos/expl/b/manu/manu.html#AppendixB > > Of course, that may not be right but I wonder if Thompson changed from > one set of precedence levels to the other, and why. https://www.bell-labs.com/usr/dmr/www/kbman.pdf [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */