Re: ESL Master Include File
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 26, 2005
- 576 views
On Mon, 25 Jul 2005 13:36:14 -0700, "D. Newhall" <guest at RapidEuphoria.com> wrote: >Pete Lomax wrote: >> >> >the programmer might want to make FALSE = -1 >> such programmers should be shot on sight. >> >> Pete > >Arguably, There is no "Arguably" about it at all. If you cannot see the fundamental difference between an arbitrary end of file designator and the functional implications of TRUE and FALSE then I can feel nothing but pity and contempt for you. It may be that constant EOF=-1 makes code easier to read and I guess would make it easier to change if the highly unlikely occurred and Rob changed it. Despite the highly unlikely chance of such things, some libraries actually do define TRUE=(1=1) and FALSE=(1=0). There is nothing wrong with using tri-logic with say isTLtrue=1, isTLunknown=0, and isTLfalse=-1, (though isTLfalse=0, and isTLunknown=-1 would probably be just as effective) but defining FALSE as -1 is just brain-dead stupidity. (I note that you wrote UNDEF=0 and FALSE=0, somewhat proving my point, although of course I accept [hope?] it was just a minor typo.) Pete