On 2-Apr-09, at 4:25 PM, Per Eckerdal wrote:
But I still don't see any error in the main point of my previous mail, that is that only two different sets of globals are needed.
No... that's wrong. In the tower model each instance is an independent cell. If one of the levels is keeping state in one of these cells, you don't want it to interfere with the state in another cell (i.e. for the same variable at a different level). Keeping state is useful at the macro expansion level to keep tables of macros you have seen in the file being expanded.
State is not the only thing... you might store in a module's variable "v" some information which will not be the same at all levels (a timestamp, a data structure, a list, etc).
So you can't get out of this trouble by ordering the initializations.
Marc