Branch: Tag:

2003-08-18

2003-08-18 15:11:38 by Martin Stjernholm <mast@lysator.liu.se>

Backported an important fix from 7.5, along with testsuite cases:
Reworked the Foo::this implementation to work correctly with parent
pointers through inherits etc. It's now done through a special
identifier reference integer IDREF_MAGIC_THIS.

Rev: bin/mktestsuite:1.22
Rev: src/builtin_functions.c:1.461
Rev: src/docode.c:1.162
Rev: src/interpret.c:1.293
Rev: src/interpret_functions.h:1.125
Rev: src/las.c:1.321
Rev: src/object.c:1.220
Rev: src/program.c:1.474
Rev: src/program.h:1.176
Rev: src/testsuite.in:1.589

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: program.h,v 1.175 2003/03/20 18:02:57 mast Exp $ + || $Id: program.h,v 1.176 2003/08/18 15:11:38 mast Exp $   */      #ifndef PROGRAM_H
238:    INT16 id_flags; /* static, private etc.. */   };    + /* Magic value used as identifier reference integer to refer to this. */ + #define IDREF_MAGIC_THIS -1 +    /*    * Each program has an array of these,    * the first entry points to itself, the