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 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!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 20 Jul 2005 22:07:47 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1120752411.808598.292980@g49g2000cwa.googlegroups.com> <1121269243.013754.57720@g14g2000cwa.googlegroups.com> <1121883276.400592.326630@o13g2000cwo.googlegroups.com> Subject: Re: Private primitive operations available to entire package hierarchy. Can it be done? Date: Wed, 20 Jul 2005 22:10:54 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-oVMXDaUe2xdxhWoBvcGvcPYpJyA8jrnqCEahGUge1syXIU2jjw1fstdcXV3k0tl7IvT+LRX2gNANsln!Gm6M5RPCO8RxYhSiPbibCWsONq/ubRSmuDlTqm0hwGDG7XFGrFNJI850hwAoYYUj+mmAc2AEMe+f X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:3713 Date: 2005-07-20T22:10:54-05:00 List-Id: "Lucretia" wrote in message news:1121883276.400592.326630@o13g2000cwo.googlegroups.com... ... > I currently have a library where you have instances and these are not > allocated with new (like GtkAda). So, I've found that the use of > aliased is required in a fair few places. I'm wondering whether it > would be better to follow the GtkAda style and allocate the objects > using allocators. What do you lot think? My two cents is that the types in question should be tagged (usually because they're derived from controlled); if that's true, you don't need aliased to be visible in the user code. (That's how Claw works). That might require a thicker library than you have in mind, though. Randy.