Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
STR problem (*solved*)
#7
boriel Wrote:
LCD Wrote:Scary, I know... If I write
Code:
Dim daytime$ as string
and don't use it (or simply rem out the lines where it was used), the compiler throws out:
"warning: Variable 'daytime' is never used Errors occured, compilation failed".
the same with other variables:
Code:
Dim a as ubyte
results in "warning: Variable 'a' is never used Errors occured, compilation failed" if I do not use the variable.
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:
Well, catching ELSEIF and others missing syntax error is something I will try to improve soon.

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
If you compile these lines (not using variable b), the compiler should only ignore the fact, variable b is not used, but it stops with this message:
"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!


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)