I wish for a 'All' option for Break to leave any nesting depth of loops,
without having to specifiy the exact level number.
Of course, this should be restricted to levels either within a procedure
or loops on the main program level.
Happy 3. Advent
Technicorn
Break all, to leave any depth of loops
-
- Enthusiast
- Posts: 105
- Joined: Wed Jan 18, 2006 7:40 pm
- Location: Hamburg
-
- Enthusiast
- Posts: 105
- Joined: Wed Jan 18, 2006 7:40 pm
- Location: Hamburg
Hi Rescator
can't see the connection of goto to break.
Break is meant to be a clean way to leave a loop,
or how would you end a loop if you, for example, has used it to scan a list
and found the searched item and want to leave the loop?
Or a parser for a language like Basic, how would you propagate an error up to the toplevel of the parser,
if you find the 10. parameter in the 33. nested include file has a wrong typ, for example?
Greetings
Technicorn
can't see the connection of goto to break.
Break is meant to be a clean way to leave a loop,
or how would you end a loop if you, for example, has used it to scan a list
and found the searched item and want to leave the loop?
Or a parser for a language like Basic, how would you propagate an error up to the toplevel of the parser,
if you find the 10. parameter in the 33. nested include file has a wrong typ, for example?
Greetings
Technicorn