| Deutsch English Français Italiano |
|
<86plhpfuom.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch <tr.17687@z991.linuxsc.com> 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> <vsj1m8$1f8h2$1@dont-email.me> <vsj2l9$1j0as$1@dont-email.me> <vsjgk0$207gb$1@paganini.bofh.team> <vsjkc8$252sk$1@dont-email.me> <vsk5h5$2kpbg$3@dont-email.me> <vsli5n$884d$1@dont-email.me> <vsm13n$mqsh$1@dont-email.me> <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 <already5chosen@yahoo.com> writes: > On Thu, 3 Apr 2025 15:05:59 +0200 > Opus <ifonly@youknew.org> 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++.)