Seems to be a nice trick! But it works because, SB-variables are different from C locals (see my example from c't magazine) and as Norman approved.stevepoole wrote: ↑Sat Jun 17, 2023 9:15 pm ... Tested under QDOS on SGC, (but used to run ok on 128ko).
Define the main routine however you require !
BTW: (At least) In Python it's possible, to achieve the same result, cause you can nest function definitions inside of function definitions. The inner functions have access to the local variables of the outer functions :-)
BUT YOU SHOULD USE THOSE TRICKS WITH CARE!