Liste des Groupes | Revenir à cl c |
On Fri, 24 May 2024 06:38:18 +0100, Malcolm McLean wrote:>
On 24/05/2024 02:06, Lawrence D'Oliveiro wrote:I avoid those. I structure my code like a Nassi-Shneiderman diagram, where
>On Fri, 24 May 2024 00:34:24 +0300, Michael S wrote:>
>On Thu, 23 May 2024 22:10:22 +0200 David Brown>
<david.brown@hesbynett.no> wrote:
>What program control construct would you like?Ability to break from nested loops.
>
At least 90% of the time, when I want to exit from an inner loop in C,
there will be some kind of cleanup I need to do in the outer loop
before that can exit too. So the ability to jump straight out will
rarely be used.
goto gives you the functionality you require.
each block has one entrance at the top, and one exit at the bottom. Easier
to keep track of error conditions and cleanups that way.
Les messages affichés proviennent d'usenet.