[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: and/or missbehaviour in embedded lua 5.1
- From: Andreas Stenius <kaos@...>
- Date: Wed, 15 Mar 2006 11:05:43 +0100
Hi,
I just came across this strange behaviuor while testing our application
with lua 5.1 in a embedded devive:
> =false and 0
false
> = false or 0
1.0890312344636e-60
> =true or 0
true
> =true and 0
1.0890312344636e-60
> =false and 1
false
> =false or 1
1.0890312344636e-60
> return false or 100
1.0890312344636e-60
> =true and 1
1.0890312344636e-60
> =DU
60
> =true and DU
60
> =true and 60
1.0890312344636e-60
> =1 and true
true
> =1 or true
1
> = 0 or false
0
>
This used to do what was expected with lua 5.0.2 on the same device.
Any ideas, any one?
//Andreas