Difference between revisions of "Manual:DIL Manual/secure()"
Jump to navigation
Jump to search
(XML import of LLM wiki pages) |
(XML import) |
||
| Line 1: | Line 1: | ||
| − | + | <span id="bpsec"></span> | |
| − | + | secure ( u : unitptr , label ) | |
| + | u : Unit to secure. | ||
| + | label : Label to jump to, on removal. | ||
| + | result: Secures a unitptr, so that the program will go to 'label' | ||
| + | if unit leaves local environment. If this happens, during | ||
| + | a call to another function/procedure, it will continue | ||
| + | at that label when the function/procedure returns. | ||
| + | If you perform some kind of call to a template, the removing | ||
| + | of a unit from the local environment will not have affect. | ||
| + | until the return from that function, as the program execution | ||
| + | will continue at the designated label after a call. Should | ||
| + | several secured units leave local environment, the last such | ||
| + | event will determine the point of execution upon return. | ||
<span id="bpsec"></span> | <span id="bpsec"></span> | ||
secure ( u : unitptr , label ) | secure ( u : unitptr , label ) | ||
Latest revision as of 22:33, 4 December 2025
secure ( u : unitptr , label )
u : Unit to secure.
label : Label to jump to, on removal.
result: Secures a unitptr, so that the program will go to 'label'
if unit leaves local environment. If this happens, during
a call to another function/procedure, it will continue
at that label when the function/procedure returns.
If you perform some kind of call to a template, the removing
of a unit from the local environment will not have affect.
until the return from that function, as the program execution
will continue at the designated label after a call. Should
several secured units leave local environment, the last such
event will determine the point of execution upon return.
secure ( u : unitptr , label )
u : Unit to secure.
label : Label to jump to, on removal.
result: Secures a unitptr, so that the program will go to 'label'
if unit leaves local environment. If this happens, during
a call to another function/procedure, it will continue
at that label when the function/procedure returns.
If you perform some kind of call to a template, the removing
of a unit from the local environment will not have affect.
until the return from that function, as the program execution
will continue at the designated label after a call. Should
several secured units leave local environment, the last such
event will determine the point of execution upon return.