pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || 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: builtin.cmod,v 1.117 2003/02/11 00:38:34 grendel Exp $ + || $Id: builtin.cmod,v 1.118 2003/02/11 00:40:29 grendel Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "opcodes.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"
pike.git/src/builtin.cmod:738:    optflags OPT_TRY_OPTIMIZE;   {    RETURN 8 * (1 << s->size_shift);   }      /*! @decl mixed m_delete(object|mapping map, mixed index)    *!    *! If @[map] is an object that implements @[lfun::_m_delete()],    *! that function will be called with @[index] as its single argument.    *! If @[map] is an object that does not contain the @[lfun::_m_delete()] -  *! implementation, an errorw will be thrown. +  *! implementation, an exception will be thrown.    *!    *! Otherwise if @[map] is a mapping the entry with index @[index]    *! will be removed from @[map] destructively.    *!    *! If the mapping does not have an entry with index @[index], nothing is done.    *!    *! @returns -  *! The value that was removed will be returned. +  *! The value that was removed will be returned or an exception will be thrown +  *! in case of an error.    *!    *! @note    *! Note that @[m_delete()] changes @[map] destructively.    *!    *! @seealso    *! @[mappingp()]    */   PIKEFUN mixed m_delete(object|mapping map, mixed index)    efun;    optflags OPT_SIDE_EFFECT;