LONG is the default type of variables.
It is a 32-bit type, meaning that 32-bits of memory (RAM) are used to store the data for each variable of this type and the data can take (integer) values in the range -2,147,483,648 to 2,147,483,647.
Variables default to being LONG typed, but they can also be explicitly declared as LONG:
DEF x:LONG, y PROC fred(p:LONG, q, r:LONG) DEF zed:LONG statements ENDPROC
The global variable x, procedure parameters p and r, and local variable zed have all been declared to be LONG values.
The declarations are very similar to the kinds we've seen before, except that the variables have `:LONG' after their name in the declaration.
This is the way the type of a variable is given.
Note that the global variable y and the procedure parameter q are also LONG, since they do not have a type specified and LONG is the default type for variables.
Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.