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!z14g2000cwz.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: 25 Jul 2005 11:14:13 -0700 Organization: http://groups.google.com Message-ID: <1122315253.757948.150350@z14g2000cwz.googlegroups.com> References: <1120752411.808598.292980@g49g2000cwa.googlegroups.com> <1121269243.013754.57720@g14g2000cwa.googlegroups.com> <1121883276.400592.326630@o13g2000cwo.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 1122315260 3188 127.0.0.1 (25 Jul 2005 18:14:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 25 Jul 2005 18:14:20 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:3763 Date: 2005-07-25T11:14:13-07:00 List-Id: Erm, they are tagged and in some cases I have needed "aliased" to get hold of the actual address of the item, i.e. when connecting an event handler to a frame, you have to give it the address of the event handler, the lib currently uses this address internally as well. The lib is already a thick binding: 1) A mirror of the class hierarchy from C++ into Ada tagged types. 2) The primitive operations call imported C functions which in turn call the necessary C++ methods. 3) Conversions between Ada and C types is done inside the lib and you never deal with a C.int/long or chars_ptr. Luke.