Understanding Local vs. Instance Variables

@Martin_B_W, I hope you don't mind me piggy-backing on your excellent question, even though it was over 6 months ago. I have a question that I think is directly related.

@peternlewis, I thought I had finally internalized the difference between Local and Instance variables, but this question now occurs to me:

Is there any reason to not always use Instance variables, including where I previously would have used Local variables?

IOW, are there any cons, any downsides, to just always using Instance variables?

IAC, thanks again Peter for giving us these powerful variable types.

Here's My Logic/Use Case

  • Sub-Macros can only use Instance variables to share the variable with the main, calling Macro.
  • Whereas, scripts can use either Local OR Instance variables to share with the calling Macro.
  • So, it seems to me that always using Instance variables will simplify my designs and code, and make future mods easier.