01-06-2005, 10:17 PM
Yeah, arguments were not checked if they were passed by reference, FB was converting anything to temp vars, new version won't allow that, (a) is a byref integer arg, while you are passing a byte var, new version will report:
test.bas(10) : error 59: Type mismatch, at parameter: 1
So or you redeclare it as (byval a as integer) or (a as byte).
New version does loads of parameter checkings that weren't done before, i was checking stuff at the Intermediate Representation module, what is a bad place to do that.. all checks done at the AST now.
New release will be done soon..
test.bas(10) : error 59: Type mismatch, at parameter: 1
So or you redeclare it as (byval a as integer) or (a as byte).
New version does loads of parameter checkings that weren't done before, i was checking stuff at the Intermediate Representation module, what is a bad place to do that.. all checks done at the AST now.
New release will be done soon..
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php