Path: utzoo!attcan!uunet!mitel!sce!scs!spl1!gargoyle!tank!ncar!ames!apple!rutgers!bellcore!texbell!uhnix1!moray!urchin!f506.n106.z1.fidonet.org!Roy.Browning From: Roy.Browning@f506.n106.z1.fidonet.org (Roy Browning) Newsgroups: comp.lang.c++ Subject: Zortech C++ problem. Message-ID: <16271.24AECB9B@urchin.fidonet.org> Date: 2 Jul 89 17:19:56 GMT Sender: ufgate@urchin.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/506 - Fulcrum's Edge, Spring TX Lines: 23 > From: rjv@umb.umb.edu (Rafael J. Vicente) > Date: 21 Jun 89 03:23:32 GMT > Organization: UMASS-Boston, Boston, MA > Message-ID: <793@umb.umb.edu> > Newsgroups: comp.lang.c++ > > To the Zortech guys (Walter Bright ?) , the following question: > The following program should print a 'B' , but the output is a D. > Any fixes ? > class D: public B { public: D() { putchar(B::g()); } f() {return 'D'; } void g() { } }; Rafael: With the minor modification above the code compiles and works per your expectations in version 1.5. The problem has been corrected for future releases. Walter himself will have to supply any workaround for version 1.07. Roy Browning