pike.git
/
lib
/
master.pike.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/master.pike.in:1:
// -*- Pike -*- // // Master Control Program for Pike. // // This file is part of Pike. For copyright information see COPYRIGHT. // Pike is distributed under GPL, LGPL and MPL. See the file COPYING // for more information. //
-
// $Id: master.pike.in,v 1.
228
2002/11/
24
18
:
20
:
09
grubba Exp $
+
// $Id: master.pike.in,v 1.
229
2002/11/
26
12
:
56
:
01
grubba Exp $
#pike __REAL_VERSION__ // Some programs destroys character pairs beginning with the currency // symbol when running in chinese locale. #if "ยค/" != "\244/" #error "master.pike.in is corrupted." #endif // --- Some configurable parameters
pike.git/lib/master.pike.in:721:
"%O\n", trace); }) { werror("sprintf() failed to write error.\n"); } } } //! @decl object new(string|program prog, mixed ... args) //! @appears new //!
-
//! Instantiate a program.
+
//!
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.
+
//!
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.
//! //! @note
-
//! These two functions are considered obsolete, use
-
//! @code{((program)@[prog])(@@@[args])@}
-
//! instead.
+
//!
These two functions are considered obsolete, use
+
//!
@code{((program)@[prog])(@@@[args])@}
+
//!
instead.
//! //! @seealso //! @[destruct()], @[compile_string()], @[compile_file()] //! object new(string|program prog, mixed ... args) { if(stringp(prog)) { if(program p=cast_to_program(prog, backtrace()[-2][0])) return p(@args); else error("Failed to find program %s.\n", prog); } return prog(@args); } //! @decl object clone(string|program prog, mixed ... args) //! @appears clone //!
-
+
//! Alternate name for the function @[new()].
+
//!
+
//! @note
+
//! Considered obsolete.
+
//!
//! @seealso //! @[new()] function clone = new; /* This array contains the names of the functions * that a replacing master-object may want to override. */ constant master_efuns = ({ "error",