Liste des Groupes | Revenir à cl c |
Lawrence D'Oliveiro wrote:as to this loop as i said i had no ide how to make indexes like iOn 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 wasif so thats probably sad, though i dont know how it looked like
lost: the ability to have a value-returning statement block inside an
expression.
>
The construct looks like
>
VALOF $( ... «stmts»; RESULTIS «return-value» $)
>
it is good to things return value and good to be able to combine it
>
as i sait for example i consider such loops
>
10'x //ten tiem execute x
>
print (10'x+=x)/10
>
would be equivalent of
>
for(int i=0; i<10; i++) x+=x;
print(x/10)
>
(and its still c, just with shorted syntax not python et sort)
>
>
Les messages affichés proviennent d'usenet.