From: "Ben Laurie" <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 5:39 PM


> Aaron Bannert wrote:
> > p.s. why would "!!" fix bugs on some platforms if ap_exists_config_define
> > can only return 0 or 1? I can only see using !! to normalize some non-bool
> > return to 0/1 for some weird logic, and even then it's not readable.
> 
> As I was responsible for !!, I guess I should explain. The original
> version was flag=!!getenv("SOMETHING").
> 
> I agree it isn't totally readable, and asked permission before including
> it.

True, flag = (getenv("SOMETHING") != NULL) is much clearer.

Reply via email to