Liste des Groupes | Revenir à cl c |
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>Tim Rentsch <tr.17687@z991.linuxsc.com> writes:>
[...]
>Not exactly. There are things that can be done inside a>
statement-expression that are not available inside nested
functions or lambdas.
And you're not going to tell us what those things are.
Apparently not.
>
But one thing occurs to me... you can break (or jump) out of a statement
expression:
>
for (int i = 0; i < 10; i++)
printf("%d\n", ({ if (i > 5) break; i; }));
>
You can't do this with a lambda or nested function.
Les messages affichés proviennent d'usenet.