I'd solve this using a class. The object instantiated would be initialized with a given value by the new() method (or by a default value) and then the value would be manipulated with a method, that would apply the required changes to the value and return the updated value.
I would also ask myself the question if I should implement this as a Singleton class, all depending upon the needs at hand.
In reply to Re: A metaclosure? Howto?
by Biker
in thread A metaclosure? Howto?
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |