Branch: Tag:

2002-11-28

2002-11-28 20:11:14 by Martin Nilsson <mani@lysator.liu.se>

Removed 'new' alias 'clone'

Rev: lib/master.pike.in:1.231

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.230 2002/11/28 02:12:25 mast Exp $ + // $Id: master.pike.in,v 1.231 2002/11/28 20:11:14 nilsson Exp $      #pike __REAL_VERSION__   
754:    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.    */
788:    "describe_backtrace",    "describe_error",    "new", -  "clone", +     "normalize_path",    "getenv",    "putenv",
807:   {    object o = this_object();    -  foreach(master_efuns, string e) { -  if (o[e]) { +  foreach(master_efuns, string e) +  if (o[e])    add_constant(e, o[e]); -  } else { -  throw(({ sprintf("Function %O is missing from master.pike.\n", e), -  backtrace() })); -  } -  } +  else +  error("Function %O is missing from master.pike.\n", e);       add_constant("strlen", sizeof);    add_constant("write", _static_modules.files()->_stdout->write);