2 comments

[ 2.6 ms ] story [ 15.1 ms ] thread
The list of proposed solutions is missing the single-element enum type approach: http://stackoverflow.com/a/71399
(author here) Two points, (a) I was describing general lazy initialization, not just Singletons and (b)I believe the Enum approach is not lazy.