From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b8748382fcfacc1 X-Google-Attributes: gid103376,public From: "David Botton" Subject: Re: friend classes in ada95 Date: 2000/04/16 Message-ID: #1/1 X-Deja-AN: 611922529 References: <38F6B617.34E216A7@emw.ericsson.se> <38F887AE.8CDA24E0@acm.org> <8dc8oi$kda$1@nnrp1.deja.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: support@usenetserver.com Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. NNTP-Posting-Date: Sun, 16 Apr 2000 14:20:02 EDT Newsgroups: comp.lang.ada Date: 2000-04-16T00:00:00+00:00 List-Id: If I had the time I would modify GNAT even if just for my own use to add support for something like: class type X is new Y with interface A, B record new_var : abc; end record; and interface type ABC; procedure A_Func (This : ABC) is abstract; interface type DEF is new ABC; procedure B_Func (This : ABC) is abstract; You could then have vars like: A : ABC'Class := An_X object; type ABC_Pointer is access all ABC'Class; I would have a syntax for OO that was not embarassing to talk about in public and would stop turning purple when confronted by OO people about MI since I have at least interface inheritance _directly_ suported by the language. On Win32 I would implement the interfaces using the same "vtbl" style used by MSVC++ and therefore COM. Perhaps some day...... (Ok, enough day dreaming, I've got to get back to work...) David Botton Robert Dewar wrote in message <8dc8oi$kda$1@nnrp1.deja.com>... > class type x is record ....