What does your feature request improve on? Please describe.
A leave control flow command would reduce the number of instructions necessary to break out of a nested control flow statement (consider multiple loops nested into each other: you would need to add a superfluous if statement into every loop checking for the value of a cancel var).
Describe the solution you'd like
Provide a leave command analog to break, but it should leave a nested control flow structure completely.
Additional context
Add any other context or screenshots about the feature request here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
The following things have to be done:
Create the necessary bytecode ID for leave in the FlowCtrl class
Add the necessary logic in all flow control functions
Add leave to the error-commands, if used outside of a flow control statement
Add leave as a replacement for break in switch if analyzed with the static code analyzer
DESCRIPTION
What does your feature request improve on? Please describe. A
leave
control flow command would reduce the number of instructions necessary to break out of a nested control flow statement (consider multiple loops nested into each other: you would need to add a superfluousif
statement into every loop checking for the value of a cancel var).Describe the solution you'd like Provide a
leave
command analog tobreak
, but it should leave a nested control flow structure completely.Additional context Add any other context or screenshots about the feature request here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
The following things have to be done:
leave
in theFlowCtrl
classleave
to the error-commands, if used outside of a flow control statementleave
as a replacement forbreak
inswitch
if analyzed with the static code analyzerleave
IMPLEMENTATION STEPS
(see also our Wiki for implementation guidelines)
DOCUMENTATION STEPS
(see also our Wiki for further information)
*.NHLP
and*.NDB
files, if needed)*.NLNG
files, if needed)PULL REQUEST