Y
Hacker News
new
|
ask
|
show
|
jobs
by
cpeterso
4764 days ago
Simply appending a number to the variable name would be adequate to prevent name conflicts. Each method would only access its own static variable, so fancy C++-style name mangling would be overkill.