Strict and Superstrict

BlitzMax Forums/BlitzMax Beginners Area/Strict and Superstrict

Sanctus(Posted 2006) [#1]
Wath is the diference between strict and superstrict?


Perturbatio(Posted 2006) [#2]
See Language->Basic Compatibility in the Help files for strict
see here for superstrict:
http://www.blitzbasic.com/Community/posts.php?topic=51138#570459


Dreamora(Posted 2006) [#3]
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".


Chris C(Posted 2006) [#4]
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.!