dim


dimension of an entity

dim
edit
error
exp
history
matrix
malloc
print
read
system
var

dim

dim(expr)

Returns the number of elements of the evaluation of expr.
Examples:
dim(NIL); returns 0.
dim [1,5]; returns 5
dim("toto"); returns 4

dim edit

Returns the size of the terminal (columns, rows).

dim edit(nl,nc)

Can change these dimensions.

dim error

Returns the number of lines displayed before and after an error.

dim error(n)

Change this number.

dim exp

dim exp(n)

Returns power of 2 <= n.

dim history

Returns the maximum number of command lines stored in history (100 default).

dim history(n)

Change this number.

dim matrix

Returns (nb, nx, ny) dimensions of the matrice (size nx * ny) read by read matrix.

dim malloc

Returns the maximum size of mallocs (default 100000).

dim malloc(n)

change this size.

dim print

Returns the maximum size of prints (default 5000).

dim print(n)

change this size.

dim read

dim read("nnn")

Returns the size (in octets) of file nnn.

dim system

Returns the number of integers (longs) reserved by the stack.

dim system("env")

Returne the environments number (typically 3: interpreter, anyflo, application).

dim var

dim var("v")

Returns the number of longs occupied by the external variable "v".

dim var

Returns the number of longs occupied by all the external variables.