Hi,
I know that thinBASIC help file is still under development, but I'v found, that it contain some information, which is not true now.
In chapter named "Variables" there is red colored text which says:
Interpeter in current version is so smart, that it detects use of undeclared variable, and it NOT allows to use it.You can also declare a variable implicitly by simply using its name in your script. That's not generally a good practice because you could misspell the variable name in one or more places, causing unexpected results when your script is run. For that reason, the Option Explicit statement is available to require explicit declaration of all variables. The Option Explicit statement should be the first statement in your script.
Options Explicit is also not needed ( and not existent ) statement of thinBASIC language
Thanks,
Psch
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Initial version of thinBasic called AutoProc had "Option explicit" functionality. It was possible to autodeclare variables.
Later we change it in order to have more control and programming diligence.
Help fixed.
Thanks.
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks