This interface provides access to the command line arguments given
to a process when it is started (see Process.Create
).
\index{parameters of a process}
\index{process!parameters}
INTERFACEParams ; VAR (*CONST*) Count: CARDINAL;
Parameters are indexed from0
(the command name) toCount-1
.
PROCEDURE Get(n: CARDINAL): TEXT;
Return the parameter with indexn
. It is a checked runtime error ifn >= Count
.
END Params.Parameters that begin with the characters
@M3
are reserved for
use by the SRC Modula-3 runtime. They are not included in the
value of Count
or in the sequence indexed by Get
.