[Gambas-user] operator precedence

o.s.p o.s.p at ...69...
Thu Mar 26 12:45:06 CET 2009


hi
something is changed lately (gambas2-1916)?

' Gambas module file

PUBLIC SUB Main()

DIM a AS Integer = 1
DIM b AS Integer = 2
DIM r AS Integer

r = TRUE
PRINT NOT a, r
r = a > b
PRINT r
r = NOT a > b
PRINT r
r = NOT (a > b)
PRINT r

END

seems the not operator comes before the > evaluation...
is there a reference in the docs?

thanks




More information about the User mailing list