Extracted from Pike v7.3 release 45 at 2002-06-04.
pike.roxen.com
[Top]

Method new()


Method new

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

Description

Instantiate a program.

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

Note

These two functions are considered obsolete, use

((program)prog)(@args)
instead.

See also

destruct, compile_string, compile_file