Note: you may find the way of referencing trivial if you already know languages like BASIC, C, Pascal, Java, JavaScript etc. However, there are languages that do require explicit value-of symbols, like Logo. In some scripting languages like php and bash, there is a limited possibility to omit variable dereferencing symbols, but there exist such for special cases. As for imeight language, it follows the BASIC way:
Defined names can be referenced by mentioning the names.
The format of the definition and the reference are the same...
So how to tell if a name is a definition or a reference?
If the name appears in [Expressions] then it refers to its value.
The name may appear as definition in @, DIM, DEF instructions.
Instructions with a ref argument (FOR, INPUT, READ, LET, PULL, GET) may initialize values for new variable names (but can reassign to an existing variable as well.) Initialization is the way of defining new variables but in case of arrays, they need a separate definition (DIM) before initializing the elements.
Wiki: Expressions
Wiki: Home
Wiki: Names
Anonymous