Path: utzoo!utgpu!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!geac!sq!sqwest!brad From: brad@sqwest.sq.com (Brad Might) Newsgroups: comp.lang.c++ Subject: Re: Chameleon objects (calling virtual functions from constructors) Message-ID: <1989Dec19.175223.1010@sqwest.sq.com> Date: 19 Dec 89 17:52:23 GMT References: <11266@csli.Stanford.EDU> <47479d37.12160@espol> <1727@osc.COM> Organization: SoftQuad Inc. Lines: 28 In-reply-to: strick@osc.COM's message of 11 Dec 89 20:57:03 GMT > From: strick@osc.COM (henry strickland) > > The following program demonstrates a simple example where > (Base*)&x and (Derived*)&x are not the same absolute value, > for a Derived x. > ... code example Can I do the following with multiple inheritance then ? class Derived : public Other, public Base ... some fn Foo returns *Other. can i do Derived *d = (Derived *)Foo() ; as I could if Derived was derived strictly from Other ? -- Brad Might brad@sq.com (brad@sq ?) SoftQuad West brad!sq!utzoo!... (604) 585-1999