Sujet : Re: Threads across programming languages
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c++ comp.lang.cDate : 17. May 2024, 23:17:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v28l1u$2d8vg$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Mon, 13 May 2024 15:04:50 +0300, Michael S wrote:
On Mon, 13 May 2024 00:43:38 -0000 (UTC) Lawrence D'Oliveiro
<ldo@nz.invalid> wrote:
On Sun, 5 May 2024 12:37:18 +0300, Michael S wrote:
As a code reader, I very much prefer C, where nested function are not
allowed at all.
The GNU C compiler allows them: see my example in the “Recursion, Yo”
thread.
Which does not make it legal C. Or good ideea.
Worthwhile comparing, though: the one using nested functions is 99 source
lines; the one doing it in strictly standard C is 128 source lines. That’s
nearly 30% more code to do the same thing.