Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!stanford.edu!unixhub!ditka!comeau From: comeau@ditka.Chicago.COM (Greg Comeau) Newsgroups: comp.lang.c++ Subject: Re: polymorphism on base objects? Keywords: C++, polymorphism, references, base objects, bug Message-ID: <39060@ditka.Chicago.COM> Date: 17 May 91 05:57:11 GMT References: Sender: comeau@ditka.Chicago.COM (Greg Comeau) Reply-To: comeau@csanta.attmail.com (Greg Comeau) Distribution: comp Organization: Comeau Computing Lines: 16 In article dpg@extro.ucc.su.OZ.AU (D P Gilbert) writes: >I was experimenting with polymorphism to see if it works through a >function that takes a reference to a base class and got the following >surprises. 2 compilers (SUN C++ and Comeau on ix/386) based on cfront >2.0 gave the same results. Don't be confused. As best I can see that was a bug in cfront 2.0. As 2.1, amongst other things, was a maintenance release, the output you hoped to see is the one properly ported 2.1 cfronts give. - Greg -- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Producers of Comeau C++ 2.1 Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421 Voice:718-945-0009 / Fax:718-441-2310