[net.micro.6809] Globals in BASIC09?

knudsen@ihnss.UUCP (01/11/84)

Is there any decent way to simulate global variables in B9?
I want variables that any procedure can modify, whereupon that
change is visible to all other procedures, including the main program.
So far, all I can see is to put all such variables in one structure (type) and
then pass that as an argument down the calling chain, instead of many
single variables.  Am I missing anything in the manual?
	Also, is there any way to get Static or Own variables, ie,
locals that retain their values from the previous activation of their
procedure?  These are very useful.  Must I use the same structure trick?
I know that B9 does not initialize locals on each call, but you wouldn't
dare assume they retained the previous value, due to dynamic allocation
of variable space.
	Any better ideas?  Mike k
PS: I got a PhD in CS from CM-U, so have heard the party line about
"globals considered harmful", tho not from any profs who were writing code.