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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7d1d12d1859ad7f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-07 14:45:59 PST Path: swrinde!news.uh.edu!uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail From: dweller@Starbase.NeoSoft.COM (David Weller) Newsgroups: comp.lang.ada Subject: Re: An Ada9X mimic of C++ friends? Date: 7 Feb 1995 16:38:42 -0600 Organization: NeoSoft Internet Services +1 713 684 5969 Message-ID: <3h8spi$dve@Starbase.NeoSoft.COM> References: <3h7u4p$8cp@bellboy.ucc.uconn.edu> NNTP-Posting-Host: starbase.neosoft.com Date: 1995-02-07T16:38:42-06:00 List-Id: In article <3h7u4p$8cp@bellboy.ucc.uconn.edu>, Donald M Needham wrote: >Is there a construct in Ada9x that circumvents data abstraction >similar to a friend in C++? > >needham@brc.uconn.edu > To answer the question in a general way, you can achieve it with child libraries. However, it's better to ask you to post an example. FOr instance, because the concept of type and module are separated in Ada, you don't have to go through the "friend" torture like you do in C++ (where type(class) and module are (generally) the same). -- Frustrated with C, C++, Pascal, Fortran? Ada95 _might_ be for you! For all sorts of interesting Ada95 tidbits, run the command: "finger dweller@starbase.neosoft.com | more" (or e-mail with "finger" as subj.)