Stupid question on Strict.

BlitzMax Forums/BlitzMax Beginners Area/Stupid question on Strict.

Amon_old(Posted 2004) [#1]
When it states that all must be declared, what exactly does that mean?

This is what I think it means. I think it means that all variables must be declared before use in a program.

Correct or incorrect.

Also, I dont understand any of this OOP stuff. I hope a tutorial on using OOP in games comes out coz I';m stumped right now.


Perturbatio(Posted 2004) [#2]
Yes, strict means that the variables must be declared before they are used.

for OOP:

http://java.sun.com/docs/books/tutorial/java/concepts/
(it's a start)


Amon_old(Posted 2004) [#3]
Thax :)


FlameDuck(Posted 2004) [#4]
I think it means that all variables must be declared before use in a program.
Correct. In BlitzMAX variable declaration is done using the Local or Global keywords. Fields using the Field or Global keyword.


MRaven(Posted 2004) [#5]
I THINK the advantage is that when you mistype a variable name in your code by incident, it should occure an error, right?


John Pickford(Posted 2004) [#6]
Yep.


Warren(Posted 2004) [#7]
Yes, and it is a god send.


Jeroen(Posted 2004) [#8]
Which makes me wonder,

is it also possible to check for unused variables and objects?