Liste des Groupes | Revenir à cl c |
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[1], so perhaps we'll get it back?
over half a century later.
>
?
>
[1]In addition to subsuming statement-expressions, this would also subsume
multiple other extensions, particularly GCC's local functions and Clang's
Blocks.
Les messages affichés proviennent d'usenet.