Introspection: Difference between revisions
Content added Content deleted
(Added FreeBASIC) |
m (→{{PowerBASIC}}: spelling error) |
||
Line 1,554: | Line 1,554: | ||
PowerBASIC has no way of determining if a variable "exists" in code. If variable declaration is required (using <code>#DIM ALL</code>), then any attempt to use a variable without declaring it will result in a failed compile; if variable declaration is ''not'' required, then the first time the program accesses the variable it is automatically created with the default data type (which is set using <code>DEFtype</code>). |
PowerBASIC has no way of determining if a variable "exists" in code. If variable declaration is required (using <code>#DIM ALL</code>), then any attempt to use a variable without declaring it will result in a failed compile; if variable declaration is ''not'' required, then the first time the program accesses the variable it is automatically created with the default data type (which is set using <code>DEFtype</code>). |
||
The compiler directive <code>#COMPILER</code>, introduced with PB/Win 8 and PB/CC <!--uncertain version here--> 4, will fail the compile if the compiler does not match at least one of the listed |
The compiler directive <code>#COMPILER</code>, introduced with PB/Win 8 and PB/CC <!--uncertain version here--> 4, will fail the compile if the compiler does not match at least one of the listed compilers, and is not at least the (optional) minimum version of that compiler. |
||
<lang powerbasic>#COMPILER PBWIN 9 |
<lang powerbasic>#COMPILER PBWIN 9 |