Jos van Uden:

BTW, the reason I used a class is that it forces you to instantiate through the constructor.

One possible solution:
http://codepad.org/9PO8hpI7

Bye,
bearophile

Reply via email to