are these bad names for variables?

Mar 25, 2012 at 9:45pm

recently, some global variables I am using just refuse to transfer value to some functions.
after being frustrated, I changed their names and everything starts work!!!


'tsize', 'vset0', 'conser'

are they some kind of internal function names or what ?

thanks
Mar 25, 2012 at 9:52pm
No, there's probably some variable shadowing going on.
But they're still bad variable names as they aren't descriptive.

I am using just refuse to transfer value to some functions.

You know, that's what parameters are for.
Last edited on Mar 25, 2012 at 9:54pm
Mar 25, 2012 at 11:34pm


there's probably some variable shadowing going on.


thanks, how can I avoid such things for the future?
Mar 25, 2012 at 11:41pm
Don't reuse the variable names as parameter or local variables names. Though I really agree with Athar.
Topic archived. No new replies allowed.