Re: ESL Master Include File
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 26, 2005
- 516 views
On Tue, 26 Jul 2005 06:34:22 -0700, Derek Parnell <guest at RapidEuphoria.com> wrote: >If the function 'e()' returned either TRUE or FALSE, then it is wrong to code >'if e(1,1) then' Many win32lib functions return w32True or w32False and ARE used in exactly this manner (eg isTopLevelWindow). If I see a function returns TRUE or FALSE, then I WILL assume I can use the result in a condition. Sure, w32True and w32False are defined correctly, so this is not an issue in win32lib. >Huh? There is just as much error as testing for the wrong return values of any >function. There *IS* a much higher potential for the obvious mis-assumption. >I know its just my inability to explain myself clearly, >But I fear that I'm too far to the left for most people, Don't start that nonsense either. The difference of opinion here is probably that you are stating something which can be shown to work and is therefore theoretically and technically "tolerable", whereas I am stating that such code is nothing short of wilfully misleading, and therefore, I claim, wrong. Regards, Pete