On second thought, here is a better solution:
function Set(x,y) %T.x=x %T.y=y end
function Get() return %T.x,%T.y end
The idea is to save all "static" variables as fields in T.
Then, any functions can communicate via T.
And each chunk can have its own pritave tables of statics.
When the chunck ends, the variable is gone but not its value!