Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
variables [2019/07/29 09:25] – [Variable definition] neilsvariables [2020/01/31 22:57] – [Types] neils
Line 29: Line 29:
 ^ Type           ^ Sigil           ^ Numeric range      ^Size in bytes^ ^ Type           ^ Sigil           ^ Numeric range      ^Size in bytes^
 | Byte           | !               | 0 to 255           |1| | Byte           | !               | 0 to 255           |1|
-| Integer        | # or none       | -32768 to +32767   |2|+| Integer        | # or none ((Using the # sigil for specifying integer type is DEPRECATED and will be removed in the future))       | -32768 to +32767   |2|
 | Float          | %               | ±2.93873588E−39 to ±1.70141183E38|5| | Float          | %               | ±2.93873588E−39 to ±1.70141183E38|5|
 | String pointer         | $               |0 to 65535                   |2| | String pointer         | $               |0 to 65535                   |2|
 +
  
 ===== Type conversion ===== ===== Type conversion =====
Line 106: Line 107:
 Variables, constants and labels can be global or local. Variables, constants and labels can be global or local.
  
-Any variable or constant declared using a ''CONST'', ''LET'', ''DIM'' or ''DATA'' statement outside a ''PROC ... ENDPROC'' pair is considered to be a global variable and can only be accessed from the global scope. Global variables are accessible from within a procedure by using the global modifier (''\'').+Any variable or constant declared using a ''CONST'', ''LET'', ''DIM'' or ''DATA'' statement outside a ''PROC ... ENDPROC'' pair is considered to be a global variable and are only accessible within a procedure by using the global modifier (''\'').
  
 Any variable or constant declared using a ''CONST'', ''LET'', ''DIM'' or ''DATA'' statement inside a ''PROC ... ENDPROC'' pair, including the procedure's parameters, is considered to be a local variable and can only be accessed within that procedure. Any variable or constant declared using a ''CONST'', ''LET'', ''DIM'' or ''DATA'' statement inside a ''PROC ... ENDPROC'' pair, including the procedure's parameters, is considered to be a local variable and can only be accessed within that procedure.