Topic: Mixin disabling bug


Author: djones@megatest.com (Dave Jones)
Date: 20 May 93 02:05:08 GMT
Raw View
The "mixin disabling bug" -- What is it, and how can I tell if I got it?

I'm running SunOS C++, version 3.1.0.
I compiled Max Skaller's "mixin" program with "KLUGE" not defined. CC issued
a warning

  "mixins.cc", line 39: warning: please provide an out-of-line definition:
   Object::~Object() {}; which is needed by derived classes


Oddly, "Object" does not appear anywhere else in the program, so
its declarartion can be removed. When I do that, the program compiles
and runs without warning or error. May I assume then that my compiler
does not have the "mixin disabling bug"?




Author: maxtal@physics.su.OZ.AU (John Max Skaller)
Date: Thu, 20 May 1993 19:12:09 GMT
Raw View
In article <C7Az5w.4sD@megatest.com> djones@megatest.com (Dave Jones) writes:
>The "mixin disabling bug" -- What is it, and how can I tell if I got it?
>
>I'm running SunOS C++, version 3.1.0.
>I compiled Max Skaller's "mixin" program with "KLUGE" not defined. CC issued
>a warning
>
>  "mixins.cc", line 39: warning: please provide an out-of-line definition:
>   Object::~Object() {}; which is needed by derived classes
>
>
>Oddly, "Object" does not appear anywhere else in the program, so
>its declarartion can be removed. When I do that, the program compiles
>and runs without warning or error. May I assume then that my compiler
>does not have the "mixin disabling bug"?

 Oh, that is more like a Max Skaller bug .. Object isnt
used, so it shouldnt be there .. well, you know the definition
of program?

 "A program is the tracks left by thousands of bugs"

Guess I left Object in to prove I'm a real programmer :-)

--
        JOHN (MAX) SKALLER,         INTERNET:maxtal@suphys.physics.su.oz.au
 Maxtal Pty Ltd,      CSERVE:10236.1703
        6 MacKay St ASHFIELD,     Mem: SA IT/9/22,SC22/WG21
        NSW 2131, AUSTRALIA