Modula-2 || Compiler & Tools || Library || Search Engine
PROCEDURE ALLOCATE(VAR a: ADDRESS; n: CARDINAL); PROCEDURE DEALLOCATE(VAR a: ADDRESS; n: CARDINAL); PROCEDURE Setmode(m: CARDINAL);
DEALLOCATE frees n bytes allocated storage starting at address a and sets a to NIL.
Setmode switches the mode of reaction on storage overflow. If m equals 1 ALLOCATE causes the abortion of the program (default). M equal 2 causes ALLOCATE to return a NIL pointer. Note that Setmode should be used with care because all library modules assume that ALLOCATE was successful if it returns. Therefore, the mode 2 should be used temporarily only.
Modula-2 || Compiler & Tools || Library || Search Engine