Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!usc!apple!Apple.COM!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: C++ interface to Object Pascal, whyfor? Message-ID: <5175@internal.Apple.COM> Date: 14 Nov 89 00:18:06 GMT Sender: usenet@Apple.COM Organization: Objects-R-Us, Apple Computer, Inc. Lines: 20 References:<934@swbatl.UUCP> <5162@internal.Apple.COM> In article <5162@internal.Apple.COM> lsr@Apple.COM (Larry Rosenstein) writes: > (3) You can use handle-based objects with C++ dispatching. When I tried this out, I discovered that HandleObjects use C++ 1.2 dispatching, which means you can't use multiple inheritance with subclasses of HandleObject. (If I had a copy of the MPW C++ manual, I would have known this, but I don't) I don't know why HandleObjects are implemented this way; offhand, I can't think of a technical reason why this would be the case. One should be able to overload operator new, operator delete, operator * and operator -> to implement handle-based objects with C++ 2.0 dispatching. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1