Branch: Tag:

2003-04-28

2003-04-28 18:32:38 by Martin Stjernholm <mast@lysator.liu.se>

array_column can't always be destructive on its argument, even when it has
only one ref.

Rev: src/array.c:1.146
Rev: src/array.h:1.52
Rev: src/builtin.cmod:1.135
Rev: src/testsuite.in:1.638

2:   || 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.134 2003/04/28 00:32:42 mast Exp $ + || $Id: builtin.cmod,v 1.135 2003/04/28 18:32:38 mast Exp $   */      #include "global.h"
273:    efun;    optflags OPT_TRY_OPTIMIZE;   { -  RETURN array_column (data, index); +  RETURN array_column (data, index, 1);   }      /*! @decl multiset mkmultiset(array a)