[Gambas-user] Bug in code parser

Leonardo Miliani leonardo at ...1237...
Mon Apr 6 01:35:39 CEST 2009


I discovered a funny bug in the code parser...
If I write:

DIM s AS Integer
s = Int(Rnd(0, 10)) MOD 3

I get:
Type mystmatch: wanted integer, got float instead. But Int() should return
an integer...

But if I write:

DIM s AS Integer
s = Int(Rnd(0, 10))
s = s MOD 3

the code is executed without problems :-)

-- 
Leonardo Miliani

Web: http://www.leonardomiliani.com
E-mail: leonardo at ...1237...
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
http://www.gambas-it.org




More information about the User mailing list