Thread: PBasic Variable
View Single Post
  #4   Spotlight this post!  
Unread 15-01-2002, 13:04
pbhack pbhack is offline
Registered User
#0278 (HERO)
 
Join Date: Jan 2002
Location: Orlando
Posts: 1
pbhack is an unknown quantity at this point
Lightbulb 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