Sujet : Re: on allowing "int a" definition everywhere
De : bluemanedhawk (at) *nospam* invalid.invalid (Blue-Maned_Hawk)
Groupes : comp.lang.cDate : 27. Aug 2024, 13:28:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <pan$bb5a3$9945b524$e24df187$e4a83bac@invalid.invalid>
References : 1 2 3 4
User-Agent : Pan/0.154 (Izium; 517acf4)
Lawrence D'Oliveiro wrote:
On Sun, 25 Aug 2024 12:40:39 +0200, fir wrote:
Lawrence D'Oliveiro wrote:
>
Somehow along the line from BCPL to B to C, one useful feature was
lost: the ability to have a value-returning statement block inside an
expression.
>
if so thats probably sad, though i dont know how it looked like
The construct looks like
VALOF $( ... «stmts»; RESULTIS «return-value» $)
So a la GNUC's statement-expressions? I've heard talks that C2y is likely
to be the revision that adds lambdas to C¹, so perhaps we'll get it back…
over half a century later.
⸻
¹In addition to subsuming statement-expressions, this would also subsume
multiple other extensions, particularly GCC's local functions and Clang's
Blocks.
-- Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr.blue-maned_hawk.srht.siteBSD made an attempt to standardize this. It didn't work.