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
at [2019/05/08 07:57] neilsat [2019/09/08 18:15] neils
Line 1: Line 1:
 ====== @ (address of) ====== ====== @ (address of) ======
 +
 +//Since version 1.1//
  
 Used within an expression, the ''@'' operator returns the memory address of the variable or label that it is prepended to, as an integer. Used within an expression, the ''@'' operator returns the memory address of the variable or label that it is prepended to, as an integer.
Line 13: Line 15:
  
 A more typical usage of the ''@'' operator is to resolve the address of a label. Please refer to [[examples#example_3usr_function|this example]] for demonstration. A more typical usage of the ''@'' operator is to resolve the address of a label. Please refer to [[examples#example_3usr_function|this example]] for demonstration.
 +
 +===== Resolving addresses of array members =====
 +
 +Since version 2.1 it is possible to get the address of an array member using the following syntax:
 +
 +  dim x[5]
 +  print "address of the 2nd array member: ", @x[1]
 +
 +