Strict and Superstrict

BlitzMax Forums/BlitzMax Beginners Area/Strict and Superstrict

Wath is the diference between strict and superstrict?

See Language->Basic Compatibility in the Help files for strict
see here for superstrict:
http://www.blitzbasic.com/Community/posts.php?topic=51138#570459

Superstrict enforces declaration of everything.

While strict for example allows

function something()

to return int, superstrict won't.
Same goes for other "implicit handled stuff".

be careful with function pointers it wont catch stuff like this tho....
SuperStrict

Global fpbug()=intreturn

Print "return ="+fpbug()

Function intreturn:Int()

	Return 1

EndFunction


fpbug is declared without a return but it assumes(allows) int return.!