Converts Int to Type?

BlitzMax Forums/BlitzMax Beginners Area/Converts Int to Type?

Curtastic(Posted 2005) [#1]
Why does this compile? I was hoping blitzmax would catch more things like this.
Strict

Type tguy
	Field x
EndType

f(1)

Function f(guy:tguy)
	Print guy.x
EndFunction



Dreamora(Posted 2005) [#2]
Problem is, that BM supports procedural programming with int handles instead of type references which is why this works and does not output an error :(

Would be great if there was a strict OO call that blocks any int handle stuff or show a bug on it

at least you get a access null object error in debug mode