On Wed, 2010-02-17 at 13:33 -0500, Bill Fenner wrote:
> On Fri, Feb 12, 2010 at 2:45 PM, Wes Hardaker
> <[email protected]> wrote:
> >>>>>> On Fri, 29 Jan 2010 16:06:13 +0000, Dave Shield 
> >>>>>> <[email protected]> said:
> >
> > DS> I'd also suggest a more general "flags" parameter, rather than one
> > DS> specifically for logging.  (Just in case we need to extend the behaviour
> > DS> of this routine in the future)
> >
> > Option 3 would be to use a default_store allocation to set a flag in
> > applications which would then allow it to be set ahead of time without
> > requiring a new function name.
> 
> Would you find that preferable to what I implemented in
> http://sourceforge.net/tracker/?func=detail&aid=2942940&group_id=12694&atid=312694
> ?

I would find that less favourable.

Using global variables to affect the local behaviour of a function is a
well known bad practice that helps converting code into spaghetti.

Having the global variable that is settable from outside the program
doesn't make it any better.

/MF


------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to