Last time I thought I had spotted a bug with booleans I was wrong, this time I`m sure something is screwy.
In the code snippet below a(),b & c() are all booleans, and are all set to zero (false), however both a() and c() seem to get treated in IF`s as both true and false (quite an achievement). Please let me know whether anyone else gets this, then I will report it as a bug.
Oh, and I`m using patch 3.1 .....
type test
boo as boolean
endtype
dim a(0) as test
b as test
dim c(0) as boolean
a(0).boo = 0
b.boo = a(0).boo
c(0) = b.boo
if a(0).boo then print "a = true"
if not a(0).boo then print "a = false"
if b.boo then print "b = true"
if not b.boo then print "b = false"
if c(0) then print "c = true"
if not c(0) then print "c = false"
wait key