Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #122018
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: ({ |
| Date | 2025-03-21 12:27 -0700 |
| Organization | None to speak of |
| Message-ID | <87ldsyqj40.fsf@nosuchdomain.example.com> (permalink) |
| References | <vrhmme$8v0$1@news.muc.de> <vrjgh8$1bqpn$1@dont-email.me> |
Paavo Helde <eesnimi@osa.pri.ee> writes:
[...]
> It appears the statement expressions are a gcc extension which does
> not even compile in standard C++, and is probably not needed for
> anything in C++ as there are better options like templated and inlined
> functions.
> In C there might be some usage case for it.
[...]
Statement expressions don't compile in *standard* C or C++.
gcc supports them as an extension for both C and C++ (and Objective-C).
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
({ Alan Mackenzie <acm@muc.de> - 2025-03-20 18:27 +0000
Re: ({ Bonita Montero <Bonita.Montero@gmail.com> - 2025-03-21 09:58 +0100
Re: ({ Bonita Montero <Bonita.Montero@gmail.com> - 2025-03-22 16:14 +0100
Re: ({ Paavo Helde <eesnimi@osa.pri.ee> - 2025-03-21 12:54 +0200
Re: ({ Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-03-21 12:27 -0700
Re: ({ Bonita Montero <Bonita.Montero@gmail.com> - 2025-03-22 10:09 +0100
Re: ({ Alan Mackenzie <acm@muc.de> - 2025-03-22 11:26 +0000
Re: ({ Alan Mackenzie <acm@muc.de> - 2025-03-22 11:00 +0000
Re: ({ Alan Mackenzie <acm@muc.de> - 2025-03-22 10:53 +0000
Re: ({ scott@slp53.sl.home (Scott Lurndal) - 2025-03-22 14:09 +0000
Re: ({ Alan Mackenzie <acm@muc.de> - 2025-03-22 15:20 +0000
Re: ({ scott@slp53.sl.home (Scott Lurndal) - 2025-03-22 15:53 +0000
Re: ({ Paavo Helde <eesnimi@osa.pri.ee> - 2025-03-22 17:18 +0200
Re: ({ David Brown <david.brown@hesbynett.no> - 2025-03-22 17:45 +0100
Re: ({ Jakob Bohm <egenagwemdimtapsar@jbohm.dk> - 2025-04-01 06:59 +0200
csiph-web