Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Two different Results between C and C++ Date: Thu, 04 Jun 2020 16:04:06 -0700 Organization: None to speak of Lines: 37 Message-ID: <87lfl2v3fd.fsf@nosuchdomain.example.com> References: <8c6495f9-6139-464e-ac8f-4eac27a92776@googlegroups.com> <60d0f73c-8588-4673-a48d-e5c4cc726196@googlegroups.com> <87blm1wam0.fsf@nosuchdomain.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b656610d00cff2031007d01ed08d3ec3"; logging-data="7895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RfMV9/EDrVjK/INV7gh3o" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:viD8Su7PIXgsKCnlraxU6Y7NMIE= sha1:azBfPVdwieXR/W8B2tJ10vwaGTw= Xref: csiph.com comp.lang.c:152670 John Bode writes: > On Tuesday, June 2, 2020 at 2:06:54 PM UTC-5, Keith Thompson wrote: >> John Bode writes: > > [snip] > >> >> > So yeah, I'm going to continue to emphasize that they are different languages >> > with different rules and behavior, regardless of how much they may have in >> > common. >> >> Sure, they're different languages, but why ignore their >> commonalities? > > I'm not *ignoring* their commonalities, I'm *emphasizing* their differences > precisely because of questions like the one that started this thread. This > is one of the places where C and C++ really do differ. > > Yes, in most cases C and C++ will do the same thing, but you should never be > *surprised* when they don't (modulo undefined behavior). Hence why I say it's > less ass-bitey to treat them as completely different languages, at least until > you reach some minimum level of understanding of both. If you had said that in the first place, I would have had no objection. But you said "C and C++ are completely different languages", which is simply not true. Calling them "completely different language" *is* ignoring their commonalities. No doubt you knew what you meant, but I don't think that meaning was correctly expressed by your words. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */