next up previous contents index
Next: Odd Up: Functions and Procedures Previous: Move

New

   

Declaration:

Procedure New (Var P : Pointer[, Constructor]) ;

Description:

New allocates a new instance of the type pointed to by P, and puts the address in P.

If P is an object, then it is possible to specify the name of the constructor with which the instance will be created.

Errors:

If not enough memory is available, Nil will be returned.

See also:

Dispose, Freemem, Getmem, Memavail, Maxavail

For an example, see Dispose.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998