Sean, On 21 Dec 2011, at 04:40, Sean P. DeNigris wrote:
If you evaluate "ZnServer startDefaultOn: aPortNumber" several times, you end up with that many instances of the default server class. Is that the intended behavior? #default usually = singleton, so I expected all the calls to operate on the same instance.
ZnServer>>#defaultOn: aNumber "Create a new Default instance on a given port, stopping any previously running Default and replacing it. Register the new instance." Default ifNotNil: [ Default stop ]. ^ Default := (self on: aNumber) register; yourself Hmm, I never looked at it that way, but now that you mention it, a clearer singleton behavior might make more sense. Note that in any case, only one instance was running. But it might make more sense to really maintain a singleton, the comments should be adapted as well. Thanks for bringing this to my attention. Regards, Sven