Super Strict

BlitzMax Forums/BlitzMax Beginners Area/Super Strict

Yeah
SuperStrict
Local B:Int  
Local Ent:Object=HandleToObject(B)


Compiles firn but with the Method I have it in it does not.

This is not a Run time problem currently Blueapples, it's a compile time problem. But since the code above compiles and the same code inside a my type method does not, that means there are more problems, so I REM it out and the program compiles fine in SuperStrict.

Hmm.....

OH crap!!

I had
Import "blitz3d.bmx"
at the top of my program.

This is for those of us that are using the B3dSDK it was at the top of a sample program and I did not delete it.

The Include has this at the bottom.

Function HandleToObject:Object(obj:Object)
	Return obj
End Function

Function HandleFromObject(obj:Object)
	Local h=HandleToObject(obj)
	Return h
End Function


I suppose this will screw you up because there are no type declarations and they don't make any sense..They both take an Object as the input parameter.
AHHHH!!!!!