05-12-2009, 02:13 PM
boriel Wrote:LCD Wrote:Scary, I know... If I writeWell, catching ELSEIF and others missing syntax error is something I will try to improve soon.
and don't use it (or simply rem out the lines where it was used), the compiler throws out:Code:Dim daytime$ as string
"warning: Variable 'daytime' is never used Errors occured, compilation failed".
the same with other variables:
results in "warning: Variable 'a' is never used Errors occured, compilation failed" if I do not use the variable.Code:Dim a as ubyte
Will check again which code resulted in "x definded as float", maybe the break was caused by something different (I often forgot to write "THEN" after IF and ELSEIF) :oops:
Can you paste some code where this happens? (I need more code context).
Code:
dim a as ubyte
dim b as uinteger
a=20
print a
"temp.bas:2: warning: Variable 'b' is never used Errors occured, compilation failed"
It occurs only with optimisation levels 1-3, but not if no optimisation is selected.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!