Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #162642

Re: C precedence - relative comparisons before equality operators

From James Harris <james.harris.1@gmail.com>
Newsgroups comp.lang.c
Subject Re: C precedence - relative comparisons before equality operators
Date 2021-09-06 13:38 +0100
Organization A noiseless patient Spider
Message-ID <sh5247$aes$1@dont-email.me> (permalink)
References <sh2vvh$oir$1@dont-email.me> <precedence-20210905232846@ram.dialup.fu-berlin.de> <sh4jd4$7q8$1@dont-email.me> <sh4tdj$8l2$1@dont-email.me> <sh4uvj$jd3$1@dont-email.me>

Show all headers | View raw


On 06/09/2021 12:44, David Brown wrote:
> On 06/09/2021 13:18, James Harris wrote:
>> On 06/09/2021 09:27, James Harris wrote:
>>> On 05/09/2021 23:29, Stefan Ram wrote:
>>
>> ...
>>
>>>>     Kernighan/Ritchie wrote:
>>>>
>>>> |The == (equal to) and the != (not equal to) operators are
>>>> |analogous to the relational operators except for their lower
>>>> |precedence. (Thus a<b == c<d is 1 whenever a<b and c<d have
>>>> |the same truth-value.)
>>>
>>> Do you have a link to the source of that?
>>
>> No need to reply. I found it in A.7.10 of
>>
> 
> Please do not post links to copyrighted books.  I don't know if that
> link is legal or a copyright violation, but "some link I found with
> google" is certainly inappropriate.

Not so. The book is published on the website of the Hasso Plattner 
Institute in Germany. You can read about them at

   https://en.wikipedia.org/wiki/Hasso_Plattner_Institute

I checked before posting the link that they were legitimate. As such, 
they have to take responsibility for what they publish and may well have 
(or, will likely have) permission to do so, especially if they have had 
the book on their website since 2019, as appears to be the case.

> 
> It is also long out of date - TCPL is historically interesting, and a
> fine example of good technical writing, but not necessarily an accurate
> reference of current C - it formed the basis of the C standard, but has
> not been updated with the standard.

I was asking for the source of the quote. Therefore the older the 
reference the better.


> 
> The current C standard is C17, with the last pre-certification draft
> available freely and legally from the WG14 themselves at:
> 
> <http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2176.pdf>
> 
> 
> C99, C11 and the latest draft of C2x are also available:
> 
> <http://www.open-std.org/jtc1/sc22/wg14/www/projects>
> 
> (You'll find the text in question in 6.5.8p8 and footnote 110).
> 

Thanks. Yes, I found the quote in a draft standard before I found the 
K&R2 version. It's surprising that it was so little changed.


-- 
James Harris

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

C precedence - relative comparisons before equality operators James Harris <james.harris.1@gmail.com> - 2021-09-05 18:49 +0100
  Re: C precedence - relative comparisons before equality operators Siri Cruise <chine.bleu@yahoo.com> - 2021-09-05 13:11 -0700
  Re: C precedence - relative comparisons before equality operators Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-09-05 21:12 +0100
    Re: C precedence - relative comparisons before equality operators David Brown <david.brown@hesbynett.no> - 2021-09-06 09:09 +0200
  Re: C precedence - relative comparisons before equality operators gazelle@shell.xmission.com (Kenny McCormack) - 2021-09-05 20:19 +0000
    Re: C precedence - relative comparisons before equality operators Richard Damon <Richard@Damon-Family.org> - 2021-09-05 17:52 -0400
      Re: C precedence - relative comparisons before equality operators Bart <bc@freeuk.com> - 2021-09-06 00:09 +0100
        Re: C precedence - relative comparisons before equality operators David Brown <david.brown@hesbynett.no> - 2021-09-06 09:15 +0200
          Re: C precedence - relative comparisons before equality operators Bart <bc@freeuk.com> - 2021-09-06 11:10 +0100
            Re: C precedence - relative comparisons before equality operators David Brown <david.brown@hesbynett.no> - 2021-09-06 13:01 +0200
              Re: C precedence - relative comparisons before equality operators Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-09-06 04:20 -0700
    Re: C precedence - relative comparisons before equality operators John Bode <jfbode1029@gmail.com> - 2021-09-07 09:27 -0500
      Re: C precedence - relative comparisons before equality operators Bart <bc@freeuk.com> - 2021-09-08 00:20 +0100
        Re: C precedence - relative comparisons before equality operators John Bode <jfbode1029@gmail.com> - 2021-09-08 14:18 -0500
  Re: C precedence - relative comparisons before equality operators Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-09-06 02:01 +0100
    Re: C precedence - relative comparisons before equality operators James Harris <james.harris.1@gmail.com> - 2021-09-06 09:39 +0100
      Re: C precedence - relative comparisons before equality operators Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-09-06 10:46 +0100
        Re: C precedence - relative comparisons before equality operators Richard Damon <Richard@Damon-Family.org> - 2021-09-06 10:09 -0400
          Re: C precedence - relative comparisons before equality operators Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-09-06 16:05 +0100
  Re: C precedence - relative comparisons before equality operators James Harris <james.harris.1@gmail.com> - 2021-09-06 09:27 +0100
    Re: C precedence - relative comparisons before equality operators James Harris <james.harris.1@gmail.com> - 2021-09-06 12:18 +0100
      Re: C precedence - relative comparisons before equality operators David Brown <david.brown@hesbynett.no> - 2021-09-06 13:44 +0200
        Re: C precedence - relative comparisons before equality operators James Harris <james.harris.1@gmail.com> - 2021-09-06 13:38 +0100
          Re: C precedence - relative comparisons before equality operators David Brown <david.brown@hesbynett.no> - 2021-09-06 18:12 +0200
        Re: C precedence - relative comparisons before equality operators tth <tth@none.invalid> - 2021-09-06 18:20 +0200
          Re: C precedence - relative comparisons before equality operators David Brown <david.brown@hesbynett.no> - 2021-09-06 23:40 +0200
      Re: C precedence - relative comparisons before equality operators Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-09-06 17:20 -0700
    Re: C precedence - relative comparisons before equality operators Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-09-06 13:44 +0100
    Re: C precedence - relative comparisons before equality operators Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-09-06 17:23 -0700
  Re: C precedence - relative comparisons before equality operators James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-09-06 23:07 -0400

csiph-web