ldmud-3.2.9/doc/
ldmud-3.2.9/doc/efun/
ldmud-3.2.9/mud/
ldmud-3.2.9/mud/heaven7/
ldmud-3.2.9/mud/heaven7/lib/
ldmud-3.2.9/mud/lp-245/
ldmud-3.2.9/mud/lp-245/banish/
ldmud-3.2.9/mud/lp-245/doc/
ldmud-3.2.9/mud/lp-245/doc/examples/
ldmud-3.2.9/mud/lp-245/doc/sefun/
ldmud-3.2.9/mud/lp-245/log/
ldmud-3.2.9/mud/lp-245/obj/Go/
ldmud-3.2.9/mud/lp-245/players/lars/
ldmud-3.2.9/mud/lp-245/room/death/
ldmud-3.2.9/mud/lp-245/room/maze1/
ldmud-3.2.9/mud/lp-245/room/sub/
ldmud-3.2.9/mud/lp-245/secure/
ldmud-3.2.9/mud/morgengrauen/
ldmud-3.2.9/mud/morgengrauen/lib/
ldmud-3.2.9/mud/sticklib/
ldmud-3.2.9/mud/sticklib/src/
ldmud-3.2.9/mudlib/uni-crasher/
ldmud-3.2.9/pkg/
ldmud-3.2.9/pkg/debugger/
ldmud-3.2.9/pkg/diff/
ldmud-3.2.9/pkg/misc/
ldmud-3.2.9/src/autoconf/
ldmud-3.2.9/src/bugs/
ldmud-3.2.9/src/bugs/MudCompress/
ldmud-3.2.9/src/bugs/b-020916-files/
ldmud-3.2.9/src/bugs/doomdark/
ldmud-3.2.9/src/bugs/ferrycode/ferry/
ldmud-3.2.9/src/bugs/ferrycode/obj/
ldmud-3.2.9/src/bugs/psql/
ldmud-3.2.9/src/done/
ldmud-3.2.9/src/done/order_alist/
ldmud-3.2.9/src/done/order_alist/obj/
ldmud-3.2.9/src/done/order_alist/room/
ldmud-3.2.9/src/gcc/
ldmud-3.2.9/src/gcc/2.7.0/
ldmud-3.2.9/src/gcc/2.7.1/
ldmud-3.2.9/src/hosts/
ldmud-3.2.9/src/hosts/GnuWin32/
ldmud-3.2.9/src/hosts/amiga/NetIncl/
ldmud-3.2.9/src/hosts/amiga/NetIncl/netinet/
ldmud-3.2.9/src/hosts/amiga/NetIncl/sys/
ldmud-3.2.9/src/hosts/i386/
ldmud-3.2.9/src/hosts/msdos/byacc/
ldmud-3.2.9/src/hosts/msdos/doc/
ldmud-3.2.9/src/hosts/os2/
ldmud-3.2.9/src/hosts/win32/
ldmud-3.2.9/src/util/
ldmud-3.2.9/src/util/erq/
ldmud-3.2.9/src/util/indent/hosts/next/
ldmud-3.2.9/src/util/xerq/
ldmud-3.2.9/src/util/xerq/lpc/
ldmud-3.2.9/src/util/xerq/lpc/www/
Short: bug with virtual variables
Type: Bug
State: Done: Fixed.
From: Christian Mudra <c_mudra@informatik.uni-kl.de>
See also: b-981208-4, p-990217

Hiho,

I want to point out to a bug in the virtual inheritance, which lead to
some nasty bugs. Because I found that bug still remaining in the
3.2.5.dev25-release, I report it ...

Although I discovered the bug (in TubMud), Alfe@Tubmud worked it out to make
a minimal version, which is now following:

We have four files, [a-d].c:

a.c:
inherit "players/alfe/2virtual/b";
inherit "players/alfe/2virtual/c";

b.c:
private mixed one = "this is b::one";

c.c:
virtual inherit "players/alfe/2virtual/d";
void bar() { "players/alfe/2virtual/d"::foo(); }

d.c:
private mixed two;
void foo() { printf("output of d::two: %O\n",two); }

Now we call a->bar() and receive:
output of d::two: "this is b::one"

Something is wrong with the access to variables with virtual inheritance.
Up to now there is only a workaround possible; to make private query-functions
for all variables. In that example, the workaround would be a
  private mixed query_two() { return two; }
in d.c, and of course usage of query_two() instead of direct access of 'two'.
I'm not a C-wizard (nor C++), so I can only send an LPC-example.

I'm glad too to here, that you (and some other) are going to cleanup
and debugging Amylaar's driver. Good decision :-)

Many greetings,

  Christian alias Coogan@TubMud.

----------------------------------------------------------------------------
Christian Mudra                         Just remember what your mother
c_mudra@informatik.uni-kl.de                   always told you:
Universitaet Kaiserslautern        "When you open windows you let in bugs".