3 ms·
Well could you not write new A and B functions that invoke the original functions with state parameters added while also providing the state-handling mechanisms
by ams6110 17y ago
Well could you not write new A and B functions that invoke the original functions with state parameters added while also providing the state-handling mechanisms. Then all other existing calls remain unchanged. This really just introduces a namespace for what would otherwise be a "global" but it keeps the real "global" namespace unpolluted.