Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Is a char array initializer a "string literal"? Date: Wed, 27 Jul 2022 11:02:53 -0700 Organization: None to speak of Lines: 26 Message-ID: <87fsimxwky.fsf@nosuchdomain.example.com> References: <1e68e656-89b6-42c1-a9e5-3d52387a5255n@googlegroups.com> <87sfmny9w3.fsf@nosuchdomain.example.com> <096a08d0-143e-440e-8669-143cb6e659b3n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="4cade4b69894ce75454f6fba9132da96"; logging-data="2725243"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KAD6ZP7VX9zBwqnxegg8+" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:tf2HxwgFxKoRG6u88/vWBgFVvvw= sha1:T5YrPMbg+wZTSa300aj/0skWhrI= Xref: csiph.com comp.lang.c++:85697 Malcolm McLean writes: > On Tuesday, 26 July 2022 at 20:03:23 UTC+1, Keith Thompson wrote: >> Malcolm McLean writes: >> [...] >> > C doesn't really have strings. >> Yes it does. >> >> The C standard defines a "string" as "a contiguous sequence of >> characters terminated by and including the first null character". >> C has no string *type*, but it certainly does have strings. >> > The C standard uses a lot of words in a special way. Like "function". > "string" is another of those words. Yes, and when you refuse to acknowledge that the standard has its own meanings for those words, you cause confusion. It would help if you'd at least acknowledge in the first place that you have your own meanings for words. (Since this is comp.lang.c++, let's drop this.) -- 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 */