From: Glenn Parker Date: 2005-05-10T03:32:43+09:00 Subject: Re: An idiom I like... modifiable defaults Hal Fulton wrote: > > Sometimes objects are created with certain defaults. > One way to override them is with default values in > the constructor (and often corresponding writer methods). > > But sometimes I "don't like" the default and want to > change it (for this program/session). > > Often I use class-level accessors for that purpose. Not very thread-safe, at least not in your example's implementation. -- Glenn Parker | glenn.parker-AT-comcast.net |