On 06/09/2021 14:38, James Harris wrote:
> 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.
They are a "real" institution, connected to a university, according to
Wikipedia.
> 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.
>
They could quite easily have got this wrong, or someone has published
the book on their site without going through the proper checks and
controls. It is perhaps unlikely that someone would knowingly and
intentionally violate copyright with a link on the site, but mistakes
happen.
Assuming (and I'll assume that, until shown otherwise) they don't have
rights to publish the book, then they should not have done so. However,
that does not give /you/ the right to publish the link. It means you
are both wrong, and both failed to make appropriate checks for a book
that is so clearly and obviously copyrighted.
>>
>> 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.
>
A page number in the book would be a good reference. A link to a
questionable (at best) copy of the book is not.
>
>>
>> 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.
>
Not really - changing as little as possible is the hallmark of C.