Subj : Re: "File Scope" objects To : comp.programming,comp.software-eng From : Steve O'Hara-Smith Date : Fri Aug 26 2005 11:32 pm On Fri, 26 Aug 2005 19:23:42 GMT Randy Howard wrote: > Chris Sonnack wrote > (in article ): > > > Phlip writes: > > >>> Having not unrecently read someone speak very much in favor of > >>> file scope objects, I'd be interested in a little round-about > >>> on the matter,... > > >> Give everything the most restricted scope possible. > > > Absolutely. And when several functions in one module share the > > same datum? > > Pass 13 parameters to every function of course. :-) Put them in a struct and pass a pointer to it - see X-Windows sources for examples. -- C:>WIN | Directable Mirror Arrays The computer obeys and wins. | A better way to focus the sun You lose and Bill collects. | licences available see | http://www.sohara.org/ .