Writing a unit test for a singleton implementation

deadalnix deadalnix at gmail.com
Sat May 18 01:18:24 PDT 2013


On Wednesday, 15 May 2013 at 18:28:53 UTC, Idan Arye wrote:
> Your opinion?

1/ You'll get nowhere with sleep.
2/ Both singleton and race condition are notoriously difficult to 
test. For the first one, it is considered good practice to avoid 
it altogether, for the second one, formal proof is prefered.


More information about the Digitalmars-d mailing list