I am getting an error when compiling a project that worked when I first installed V2. I now installed the latest version and when I compile I get
...
...
File: C:\Program Files\iwbdev2\Work\P\eva.eba (208) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (237) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (252) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (256) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (262) Error: G.I.Q. does not accept type double
Error(s) in compiling "C:\Program Files\iwbdev2\Work\P\eva.eba"
Build Failed
Any ideas?
			
			
			
				An operator expected int64 or uint64, but a double was passed..
What is the expression?
Please always supply some code in the future.
			
			
			
				DECLARE eval(expression:STRING),DOUBLE
...
...
SUB eval(expression:STRING),DOUBLE
DEF expr,op:string
DEF n,i:int
DEF value1,value2,res:double
   expr = trim(expression)
   'IF noprob_value(expr)=TRUE THEN RETURN val(expr)     "This is where I get the first error"
...
...
I have other subs that return doubles and there no errors for them.
I don't have any reference to int64 or uint64 anywhere in the source.
I don't understand because I have not modified anything and the first release of IWBasic 2, which I used as a trial, compiled fine.
Thank you for your help
			
			
			
				Everything is now solved thanks to Sapero!
Thank you!
			
			
			
				Quote from: obelisk on April 28, 2011, 09:33:20 PM
Everything is now solved thanks to Sapero!
Thank you!
So what fixed your problem?
LarryMc
			
 
			
			
				His work!
He found issues in the compiler and gave me information on my coding.