Topic: APLX Help : Help on APL language : System Commands : )SYMBOLS Symbol table
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

)SYMBOLS (number)


The symbol table is a list maintained by APL of all variable names, function names, labels and other names used in the current workspace. To discover how much space is available in this table, use the )SYMBOLS command on its own. The default symbol table size will vary from system to system, but in most implementations of APLX it is 1026.

To alter the number of symbols that you can use, you can alter the symbol table size. The system will allocate a symbol table size at least as big as you have requested, up to the maximum. This command can only be used in a CLEAR WS and must be the first command carried out.

             )SYMBOLS
       IS 270, USED 5
             )SYMBOLS 500
       INCORRECT COMMAND
             )CLEAR
       CLEAR WS
             )SYMBOLS 4000
       WAS 1026
             )SYMBOLS
       IS 4023, USED 0

Exceptionally you may get the error message SYMBOL TABLE FULL. If this happens, you must save the current workspace, clear the workspace and reset the size of the symbol table by typing the )SYMBOLS command followed by a new limit. You can then use )COPY to call back your functions and variables. There is little point in specifying a very large size as the symbol table uses up memory. The maximum symbol table size is 32022.


Topic: APLX Help : Help on APL language : System Commands : )SYMBOLS Symbol table
[ Previous | Next | Contents | Index | APL Home ]