| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
7.2::

# Method new()

Method new

  `object new(string|program prog, mixed ... args)`

Description

  Instantiate a program (Pike 7.2 compatibility).

  A new instance of the class prog will be created. All global variables in the new object be initialized, and then lfun::create() will be called with args as arguments.

  This function was removed in Pike 7.3, use `((program)<font face='courier'>prog` )(@<font face='courier'>args ) instead.

Deprecated
See also

  destruct() , compile_string() , compile_file() , clone()