Re: request for change of boolean
- Posted by c.k.lester <euphoric at cklester.?o?> Dec 06, 2007
- 852 views
Derek Parnell wrote: > Kat wrote: > > Is it possible to change how boolean expressions are evaluated such that > > only > > values greater than 0 pass this test? : > Why? Is there a compelling reason to change the current implementation? For > example, does it cause your programs to fail or run slower? If I have a boolean variable, then yes, it could cause a malfunction. > You should code this as ... > if readfile < 0 then ... > Would that be a problem? A simple enough fix. But the test for if readfile then is faster than the test for if readfile < 0 then plus, it takes longer to type the latter, so that over the course of, say, a billion or iterations, you've really wasted a lot of time. (That last part is a funny haha.) :)