Could be done...but a lot of bookkeeping
I haven't done this, but this approach seems plausible...
1) Order variable declarations starting with global variables first.
2) For your own benefit, clearly mark the point of divergence where the variables (symbols) in each slot differ.
3) Consider all variables after the divergence to be "local"
4) In the "called" slot, make sure that you manually initialize the local vars.
Brent
Programming Mentor
Hero 278
|