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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bae62a394f8c9d83 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: Re: ada binding Date: 10 Feb 2006 08:06:24 -0800 Organization: http://groups.google.com Message-ID: <1139587583.992524.224710@g44g2000cwa.googlegroups.com> References: NNTP-Posting-Host: 194.74.199.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139587589 13318 127.0.0.1 (10 Feb 2006 16:06:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 10 Feb 2006 16:06:29 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 Symantec_Web_Security (3.0.1.74), 1.0 C2100-0050414028 (NetCache NetApp/5.6.2R1) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:2843 Date: 2006-02-10T08:06:24-08:00 List-Id: Szymon Guz wrote: > Hi, > I've got a very simple question, lets assume that I've got a library > written in "C++" (e.g. wxWindows) and I want to make an Ada binding. I > saw that there is a project wxAda, but noone developes that. On the Actually, I do. It's not got very far yet, as it's extremely confusing and time consuming and I just haven't had the time to do it. > wxAda page there is information that between wxWindows and Ada there is > another layer - it is a C library and I don't understand just one thing: > how to make an Ada binding for a "C++" class using this C layer ? As the other poster has pointed out, the C layer is what the Ada code interfaces with. Inside the Ada layer it is then possible to inherit from the C++ classes. The idea of wxAda is provide wxWidgets for any Ada compiler, not just those that *can* import C++ libraries - but saying that, when you interface with C++ libraries you end up with a C++ like library in Ada - not very Ada like. Luke. P.S: the source isn't anywhere near ready yet.