Android Question class and process globals

Discussion in 'Android Questions' started by crimson ghost, May 10, 2019.

  1. crimson ghost

    crimson ghost Member 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: May 10, 2019
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice