Super Strict?

BlitzMax Forums/BlitzMax Beginners Area/Super Strict?

techjunkie(Posted 2005) [#1]
Hi!

I've searched the forum, Blitz Wiki and the BlitzMax docs, but can't find any info about "Super Strict"?!? Can anyone give me a description of the difference between Strict and Super Strict, or a link in the forum that describes this?

Thanks!


Robert Cummings(Posted 2005) [#2]
SuperStrict is the same as Strict but with the exception that you absolutely must declare variable types.

For example under strict you could go:
Local img

And it would assume that img was an integer. With SuperStrict, it will not make assumptions.

You would need to specify it:
Local img:TImage

And it leads to less bugs so I wholeheartedly recommend it's use. Personally I wish SuperStrict was also case sensitive...


Perturbatio(Posted 2005) [#3]
beaten to it.


techjunkie(Posted 2005) [#4]
Thanks One Eyed Jack!


Shagwana(Posted 2005) [#5]
Also will absolute force return types for functions!.


Gabriel(Posted 2005) [#6]
Also will absolute force return types for functions!.


Yes, that's gonna save me headaches. I'm always forgetting to define function return types for some reason.


Russell(Posted 2006) [#7]
Personally I wish SuperStrict was also case sensitive...


This will be added later with ExtraSuperDuperStrict mode! ;)

Russell


ozak(Posted 2006) [#8]
Case sensitivity would rock!


Hotcakes(Posted 2006) [#9]
That's CrazyWickedStrict.