On Thu, May 15, 2008 at 06:47:41PM -0400, num...@deathwyrm.com wrote:
> Jukka Ollila wrote:
> >Hmn. Did some earlier version of this fine piece of software by chance 
> >only support v1 and v2whatever, at which point you had a boolean flag?
> 
> If so, bet on there being bugs where some lazy coder knowing it was 
> boolean wrote something like:
> 
> if (config->snmp.version) {
>     /* Version 2 code here. */
> }

or a lazy compiler that doesn't (can't?) warn you about finding
non-boolean values inside if statements...  of course that doesn't
guarantee that lazy coder doesn't just do

if (config->snmp.version != 0)
{
        /* code that actually needs config->snmp.version == 2 */
}

but then we're in hates-software-programmer territory...

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agr...@poofygoof.com

Reply via email to