Next: LET /SEXAGESIMAL
Up: LET
Previous: LET /REPLACE
Contents
Index
LET /RESIZE
[SIC\]LET Variable [=] Val1 ... ValN /RESIZE
Automatically resize the variable according to the number of values to
be stored in the output variable. For example:
SIC> define integer a[2]
SIC> let a 1 2 3 /resize
W-LET, Resizing array A to length 3
SIC> exa a
A is an integer Array of dimensions 3
1 2 3
This feature makes sense when the array size is not known at the time
the procedure in written, but have to be decided instead from unpre-
dictable inputs at run time (e.g. user input in widgets). It applies
(only) to 1D arrays of any kind (numeric, logical, character). The type,
kind, rank and level (global/local) of the output variable is not modi-
fied during the process. Read-only and program-defined variables can not
be resized.
Gildas manager
2024-04-19