[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] [PATCH] remove globals from hostname

From: Alfred M. Szmidt
Subject: Re: [bug-inetutils] [PATCH] remove globals from hostname
Date: Sun, 24 Aug 2008 10:40:52 -0400

   On Sat, Aug 23, 2008 at 2:22 AM, Alfred M. Szmidt <address@hidden> wrote:
   >   Going by Sergey's advice on another thread, I tried to reduce the
   >   number of globals used in hostname. Here is an initial patch.
   > I am neither for or against this, reducing the number of globals is
   > all good and well, but for a small program (like most of our programs)
   > it makes little sense to me.  So I really don't care much, feel free
   > to do what you consider best.

   Reducing globals lets us consider turning most of this into a library
   at some point with a lower risk of namespace conflicts, and such.

   Not necessarily an explicit goal at the moment, but certainly not a
   bad thing to hack on.

Ofcourse, but in this case it was just variables for options, I
wouldn't want to keep those in a library...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]