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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: Private primitive operations available to entire package hierarchy. Can it be done? Date: 7 Jul 2005 09:06:51 -0700 Organization: http://groups.google.com Message-ID: <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 1120752417 14253 127.0.0.1 (7 Jul 2005 16:06:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 7 Jul 2005 16:06:57 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:11937 Date: 2005-07-07T09:06:51-07:00 List-Id: Hi, In my work with wxAda, I've found a need for some primitives to be private to the outside of the "wx." package hierarchy, yet packages within "wx." need to acces them. e.g. The package "wx.Window" contains a function which creates an Ada type rooted at Window_Type for a specific C++ instance type and class name (i.e. "wxWindow", "wxTopLevelWindow", etc.). This is also required in other packages, yet I don't want an application using wxAda to be able to see/use it at all. I also need to be able to do this without causing cyclic dependencies as I can see this happening quite easily. I have also added a factory to allow creation of Ada types from a C++ class name, at the moment, I register each type within the statement part of a package body. Is there an easier way register these factories? Currently to register a factory the package needs to be "with'd". Thanks, Luke. P.S: Has Ada0X been put back another year?