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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-02 10:51:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Dispatching and generics - language lawyer question Date: 02 Aug 2002 13:48:13 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <1028219309.986605@master.nyc.kbcfp.com> <1028303374.179416@master.nyc.kbcfp.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1028311002 2998 128.183.220.71 (2 Aug 2002 17:56:42 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 2 Aug 2002 17:56:42 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:27620 Date: 2002-08-02T17:56:42+00:00 List-Id: Hyman Rosen writes: > Dmitry A.Kazakov wrote: > > So in C++ int will never be a class, worse to C++. > > It's never going be a class in Ada either. > > > I doubt that it is worth effors to keep objects Ada > > and C++ compatible. > > I think that the GNAT creators would disagree with you. > As far as I know, they make corresponding Ada and C++ > objects layout compatible. Perhaps one of them will > explain why. It allows you to derive a new Ada type from a C++ class, and vice versa. Then a dispatching call from a C++ routine can call an Ada body, and vice versa. It allows _full_ mixed language programming with Ada and C++. This is a _very_ good feature. The alternative requires a C interface between C++ and Ada, which is simply not as good. -- -- Stephe