| Deutsch English Français Italiano |
|
<87ldsyqj40.fsf@nosuchdomain.example.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: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c++
Subject: Re: ({
Date: Fri, 21 Mar 2025 12:27:59 -0700
Organization: None to speak of
Lines: 16
Message-ID: <87ldsyqj40.fsf@nosuchdomain.example.com>
References: <vrhmme$8v0$1@news.muc.de> <vrjgh8$1bqpn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 21 Mar 2025 20:27:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="279d8aeca4b8e8a9dbe8bc9eae075af5";
logging-data="2300832"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xMWojUf33xWfcPBVB370T"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:3AuQ85ej1kfjOjkSbmqJWK6xrLs=
sha1:SZYiIGvt0o9s+JS16EdtiTccBkM=
Bytes: 1515
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 */