Dan Mueth <[EMAIL PROTECTED]> writes:

|       2) If somebody decided to redefine true to 0 and false to 1,
|          then I think my code would be the more robust.

That would be a grave error by that programmer. (and something we
don't care about)

| Actually, I don't even know where true and false are defined.  I'm
| guessing they are in some header file somewhere which somebody could
| conceivably change.  Is this right?  

No, true/false/bool is part of the C++ language.

| 
| Woops.  In this case, I guess I should have used:
|                       if (color_visual == true)

| I'm still learning here.  Which way is better?  

an if takes a boolean inside the (), so if color_visual is bool,
if(color_visual) is best, if(color_visual == true) is redundant.

        Lgb

Reply via email to