Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Sun, 06 Apr 2025 03:31:05 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: <86plhpfuom.fsf@linuxsc.com> References: <87y0wjaysg.fsf@gmail.com> <20250403162704.00000f76@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 06 Apr 2025 12:31:06 +0200 (CEST) Injection-Info: dont-email.me; posting-host="041fd418ef8b485cdd75dbfc4b2fa6be"; logging-data="752477"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vK39anXpjP+abFA2w1JDDmQXhEvQGmpk=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:Ye6mX41oZZL5DhVfkzSt88l1jss= sha1:Da/9BztLOe5ne8LQPa4mkIlnjqY= Bytes: 1922 Michael S writes: > On Thu, 3 Apr 2025 15:05:59 +0200 > Opus wrote: > >> For instance, if I'm not mistaken, >> designated initializers, which are very handy and have been available >> in C since C99 (25 years ago) have appeared only in C++20, about 20 >> years later. > > AFAIK, even C++23 provides only a subset of C99 designated initializers. > The biggest difference is that in C++ initializers have to be > specified in the same order as declarations for respective fields. More importantly, C++ does not accept compound literals at all. (Disclaimer: to the best of my understanding. I have given up trying to follow what is happening in C++.)