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,a3f460aaba1863e2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: Re: Private primitive operations available to entire package hierarchy. Can it be done? Date: 13 Jul 2005 08:40:43 -0700 Organization: http://groups.google.com Message-ID: <1121269243.013754.57720@g14g2000cwa.googlegroups.com> References: <1120752411.808598.292980@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: 194.74.199.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1121269246 3700 127.0.0.1 (13 Jul 2005 15:40:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 13 Jul 2005 15:40:46 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:3615 Date: 2005-07-13T08:40:43-07:00 List-Id: Although the factory that creates an Ada type from a C++ wxWidgets class name would possibly be ok in the private part of the root package (wx). Putting all the other primitives I need to be private from outside of (wx) in the root package isn't possible due to the fact that the root package (wx) doesn't know about types that those functions may need (wx.Window.Window_Type). i.e. I have another function which creates the correct window type from an access type which comes from the C side of the code, thus it's got an unknown type until it comes out of this function. This is a problem, and one I have no clue how to fix. I'm not too sure I understand what you mean with respect to the registration packages. I've had to include the factory in wx.Object package as the registration package has to return a type of Object_Class and the Object also has to register itself although, I could possibly change that), thus cyclic dependency! As for the status of wxAda...I know that a lot of people would like to use wxWidgets from within Ada, but it's not a trivial task and it's one I've been working on for at least 6 months (not solidly), maybe more, I'm not really counting, but: 1) it'll be done when it's done. In other words, once I've got these problems sorted and I have all the C++ classes wrapped a way that works and is nice and Ada-like, I'll be posting an announcement to this list. 2) As for the licence, I'd like it to be under the wxWidget licence, but I'm not sure how compatible that is to the GMGPL (Or whatever it's called). Basically, I'd like people to be able to use wxAda to create commercial apps just like they can with wxWidgets without having to give away the source code as well. 3) I won't be giving away any source before it's finished and hosted somewhere (whether that's SF, Tigris or if I can get Julian to agree, wxWidgets, or even my own hosted server, dunno yet) so please don't ask. Thanks, Luke.