Short Description
|
About making variable declaration mandatory
|
Entered
|
By:
Sandro
When: 1999-03-04 07:09:57 Build: 1.03.28e
|
Categories
|
Type:
Suggestion
Department: Product
Category:
Missing Product Feature
|
Description
|
As to our knowledge, template variable declaration is optional in SurferScript. The documentation states that all undeclared variables default to the TEXT type.
The point is that this often leads to unexpected language behavior, as is the case with expressions like "I >= 0" evaluating to TRUE when I = "-1", being I an undeclared variable.
We strongly suggest that a new system variable be introduced (something like "Screen.OptionExplicit") to disallow use of undeclared variables.
|
|
Append
|
By: WindSurfer When: 1999-03-05 19:34:15 New Status:
Accepted
|
Comment
|
This is a good idea...we have marked for future implementation.
|
|
Append
|
By: WindSurfer When: 1999-03-12 16:45:41 New Status:
Pending Customer
|
Comment
|
This has been implemented in build V of 1.3.28--
ftp://ftp.ieinc2.com/pub/surfer/t1_3_28V.zip.
Activated with the registry entry:
HKEY_LOCAL_MACHINE/Software/Intelligent Environments/Screensurfer/Config:Variable Definitions Required
Change this registry entry to "Yes" (default is No) to activate strict variable declares (will actually still give the variable a type, and compile succeeds, but all undeclared variables are displayed as compile errors with details of the variable name and where it is used).
|