On 8 October 2012 13:06, Henrik Sperre Johansen <[email protected]> wrote: > On 08.10.2012 13:03, Henrik Sperre Johansen wrote: >> >> >> >> IMO, lazily checking whether the image has been restarted whenever you >> want to do something stinks. >> Registering to be notified when image starts/stops is a lot better. > > Not to mention, less error-prone. > Miss one session check that the current session is the right one > somewhere... and everything might blow up if that is the first piece of > functionality used. > True. I did not said that my method should replace old. Sometimes lazy initialization is not what you want. But having no way to perform lazy initialization is even worse.
> Cheers, > Henry > -- Best regards, Igor Stasenko.
