According to Neal Richter: > As it stands can you think of any other objects besides config using the > 'singleton design'? This is definitely a gotcha for libhtdig.
The only other ones that come to mind for me are the Codec classes in htcommon/*Codec.cc, which all define an instance() method which allocates a single instance of the class for use by various parts of the code. If you "grep ::instance */*.cc" you should find all uses of these. I couldn't say for sure that there are no other such "singletons" in the code, as I haven't studied all of it, but those are the only ones I can recall encountering myself, other than of course the config() singleton which came later (circa last March-May). Anyone else know of any? -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 _______________________________________________ htdig-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/htdig-dev