I now understand the rationale for <close> but I would like to ask a hypothetical question.
<close> causes something to happen when a variable goes out of scope, which happens when a block terminates - for local variables in functions, this happens when a function return
so my question is:
could one get away by substituting all returns with a goto label, and after the label put the code necessary to close the variable?
from my point of view this could also be done in every block: am I right?
I guess this has already been discussed and there is some additional advantage in having a <close> attribute
but I am curious - thank you very much for your patience
Andrea