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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,e67a94e45ae33316 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-05 05:23:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.freenet.de!news.space.net!not-for-mail From: Gerhard =?ISO-8859-1?Q?H=E4ring?= Newsgroups: comp.lang.ada Subject: Re: Another good URL for all you C++ haters Date: Wed, 05 Sep 2001 14:22:33 +0200 Organization: Customer of SpaceNet GmbH Message-ID: <3B961909.4020705@___skynamics.com.invalid> References: <3b9604b1.10736828@news.geccs.gecm.com> Reply-To: g.haering@skynamics.com NNTP-Posting-Host: 195.30.93.15 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.space.net 999692534 73936 195.30.93.15 (5 Sep 2001 12:22:14 GMT) X-Complaints-To: usenet@news.space.net NNTP-Posting-Date: Wed, 5 Sep 2001 12:22:14 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.3) Gecko/20010801 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:12746 Date: 2001-09-05T14:22:33+02:00 List-Id: Chris M. Moore wrote: > http://www.byte.com/documents/s=1271/byt20010831s0001/0903_nichols.html > > Excerpt: > > Even Floyd, who loves the language, admits that, "Its greatest > weaknesses is a flaw in the interface/implementation separation. A > class exposes its private data/methods to the world and a programmer > must use some tricks (that should be supported directly in the > language) to overcome this." > > Whay I'd really like to see which would give Ada a huge lead over Java > would be a tool which takes C++ declarations and produced Ada > bindings. The GNAT User manual hints that such a tool exists but > states that ACT don't distribute it. Could you tell us where in the manual to find this hint? > I remember seeing something > somewhere about bindings being generated automatically by SGI. Are > these tools still available?` You can google for "c2ada" and "cbind". IMO these tools inevitably suck because complicated C headers with lots of #defines (even parts of structs conditionally defined in and out and such; nested structs, ...) don't map nicely to Ada (for pyAda, I ended up writing all the interfacing stuff by hand). That's why COM, CORBA, XPCOM and friends where invited. Have an IDL/type library describe the interface and create correct bindings for your language automatically. Gerhard -- Gerhard H�ring skynamics AG g.haering@skynamics.com http://www.skynamics.com