Subj : Re: "File Scope" objects To : comp.programming,comp.software-eng From : Randy Howard Date : Sat Aug 27 2005 06:21 am Steve O'Hara-Smith wrote (in article <20050826223257.6ac8ce9c.steveo@eircom.net>): > 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. I'm aware. You might have noticed the smiley, and decided that I wasn't being serious, but rather very sarcastic. -- Randy Howard (2reply remove FOOBAR) .