Article View: borland.public.cppbuilder.nativeapi
Article #17629Re: multiple inheritance and the VCL
From: Rob
Date: Fri, 07 Mar 2003 11:23
Date: Fri, 07 Mar 2003 11:23
26 lines
2037 bytes
2037 bytes
Fail to see why this is in the api newsgroup; would set followup to the cpp.language or vcl newsgroups if I knew how :-) "Stephan" <slaska@devarinc.com> wrote in message news:3e64e3b0$1@newsgroups.borland.com... > Hi, > last I heard, the VCL does not allow multiple inheritance. > I don't know the reason, but I heard it's a strict adherence to the concept > of > Object Oriented Programming OOP has nothing to do with multiple inheritence, or lack of it. The reason the VCL only allows multiple inheritence is historic. The VCL was originally implemented in object pascal, which only supports single inheritence. One of the side effects of that is that the object layout of VCL classes in memory was incompatible with the object layout later used by Borland C++ compilers to implement multiple inheritence (eg layout of virtual function tables, etc etc). It would be technically possible for the VCL, if coded in C++, to use multiple inheritence. However, then the object layouts would be incompatible with objects compiled using Delphi (particularly the older version of Delphi).
Technical Details
Message-ID:
<3e68817f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e64d1be@newsgroups.borland.com> <3e64e3b0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,679d8017f814d3b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-07 03:36:01 PST From: "Rob" <nospam@nonexistant.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e64d1be@newsgroups.borland.com> <3e64e3b0$1@newsgroups.borland.com> Subject: Re: multiple inheritance and the VCL Date: Fri, 7 Mar 2003 21:53:59 +1030 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 211.26.51.96 Message-ID: <3e68817f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047036287 211.26.51.96 (7 Mar 2003 03:24:47 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail