Android Question class and process globals

crimson ghost

Licensed User
I just noticed that if I define a variable in process globals and use the same name in a class global variable that the two are linked. I found this by accident. I was moving code to a new class but still had the old definitions in process globals (associated code in main was no longer used) intending to pass back the calculated values and remove the process globals. I was checking the calculations and happened to notice that, even though nothing was being returned from the new class, that the global variables in main were filled in with the correct values. So is it not possible to use the same variable names in process and class globals and keep them independent of each other?

Ooops. My error. Just noticed some code that loads results from a previous run. I forgot about that.
Last edited: