Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Is this really necessary Date: Tue, 10 Aug 2021 11:27:16 -0700 Organization: None to speak of Lines: 32 Message-ID: <87a6lpf94r.fsf@nosuchdomain.example.com> References: <86im0h2fi1.fsf@linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="4ba2c969ae0e906c6600fce7cdb6f53e"; logging-data="29950"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WmZJvd9gzGx6Vmh1ibwBS" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:/pj13260VagBEz7/Qx9beCrUnpQ= sha1:iTkIzm4Dg8tZpvtQw0u3sd1kf/Y= Xref: csiph.com comp.lang.c++:80839 MrSpud_m7k7yilq_8@u6w.biz writes: > On Mon, 9 Aug 2021 23:20:27 -0400 > James Kuyper wrote: >>On 8/9/21 12:23 PM, MrSpud_HG@_0b772d8ha3yjo0xb.edu wrote: >>> On Mon, 9 Aug 2021 12:16:46 -0400 >>> James Kuyper wrote: >>>> On 8/9/21 4:19 AM, MrSpud_ifhov@nldls6_1kg3nl2qnwv.biz wrote: >>>>> On Sun, 8 Aug 2021 09:23:46 -0400 >>>>> James Kuyper wrote: >>>>> Then don't use ptrdiff_t. I suspect like most people I wasn't even aware >>>>> it existed. >>>> >>>> I hope you're wrong about that - it's a fairly basic aspect of C, like >>>> [u]intptr_t or size_t. But my degree was in Physics, not CS, so I don't >>>> have any idea how bad the average CS major's education might have been. >>> >>> Ooo look at you, supercilious and patronising all in one go. Well done,have >>> a scooby snack. >> >>I'm sorry - people who confess to being unfamiliar with fairly basic >>aspects of C tend to produce feelings of superiority in me. > > In 25 years I've never ever seen that type used [snip] If you've done pointer subtraction in C or C++, you've used ptrdiff_t. You might not have referred to it by that name. -- 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 */