Path: utzoo!attcan!uunet!aplcen!samsung!usc!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Multiple Inheritance for HandleObjects in C++ Message-ID: <8937@goofy.Apple.COM> Date: 29 Jun 90 23:59:45 GMT References: <15132@reed.UUCP> <268BA8DC.4CD4@intercon.com> Organization: Apple Computer, Inc. Lines: 23 In article <268BA8DC.4CD4@intercon.com> amanda@mermaid.intercon.com (Amanda Walker) writes: > >The short answer is that HandleObjects, which were designed to allow >compatibility with Object Pascal, are incapable of representing objects with The PascalObject class provides compatibility with Object Pascal. HandleObjects are separate from PascalObjects. They are essentially native C++ objects with the restrictions that multiple inheritance isn't allowed and the objects must be allocated on the heap. (Since multiple inheritance isn't allowed, they probably use the older & more efficient C++ runtime implementation.) There's also the class SingleObject, which also uses the older implementation, and therefore doesn't support multiple inheritance. SingleObjects are allocated on the heap as non-relocatable pointers and can be allocated on the stack. -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 46-B Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr