Boolean bug ?

Ray Cheung (rayc@comp.lancs.ac.uk)
Mon, 26 Feb 1996 15:17:12 +0000 (GMT)

Hi all,

Is this a possible bug ? This bug occurs in the gamma version of 2.0
and in our embedded beta 3 version.

Check out this simple function

function booltest x
return x="(" or x=")" or x="*" or x="-" or x="+"
end booltest

calling put booltest(".") actually returns TRUE.
The function returns false for all characters - except for
the characters in the boolean statements.

If you remove the latter 2 booleans in the function then
put booltest(".") returns FALSE.

cheers

r.