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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b8748382fcfacc1 X-Google-Attributes: gid103376,public From: Stefan Folkesson Subject: Re: friend classes in ada95 Date: 2000/04/14 Message-ID: <38F6D986.D7E1E7BD@emw.ericsson.se>#1/1 X-Deja-AN: 611029459 Content-Transfer-Encoding: 7bit References: <38F6B617.34E216A7@emw.ericsson.se> <87wvm1gmne.fsf@deneb.cygnus.argh.org> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: news.emw.ericsson.se 955701649 136.225.182.62 (Fri, 14 Apr 2000 10:40:49 MET DST) Organization: Ericsson Microwave Systems AB MIME-Version: 1.0 NNTP-Posting-Date: Fri, 14 Apr 2000 10:40:49 MET DST Newsgroups: comp.lang.ada Date: 2000-04-14T00:00:00+00:00 List-Id: Yes, this is what I've done so far, but I'd rather like to separate the different classes logically in the file structure (1 class <==> 1 file). I do not want to mix the operations for two objects in the same package. Another approach I have considered is to let the Iterator package be a child package to Aggregate (the Iterator type does not inherit from the Aggregate type) package Aggregate is type T_Aggregate is private; private . . . end Aggregate; package Aggregate.Iterator is type T_Iterator is private; private . . . end Aggregate.Iterator; This would work, I think, but I want to consider other alternatives if there are any. /Stefan