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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75f02dbbddbbdc88 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.129.78 with SMTP id n14mr77690bks.5.1323938350965; Thu, 15 Dec 2011 00:39:10 -0800 (PST) Path: jh9ni13792bkb.0!nntp.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Pop function Date: Thu, 15 Dec 2011 09:38:48 +0100 Organization: cbb software GmbH Message-ID: References: <27517259.83.1323907586856.JavaMail.geo-discussion-forums@yqgn9> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-12-15T09:38:48+01:00 List-Id: On Wed, 14 Dec 2011 17:34:57 -0700, Jeffrey Carter wrote: > Your public interface should never use access types. Yes, but since list as a data structure has the semantics of objects accessed by references it would make sense to have this reflected in the interface. But of course the list element must be type List_Item is access Integer; -- Only the data, no other mess Fortunately Ada supports such implementations (via storage pools). Otherwise, it is not a list what OP wants, but rather a container, e.g. set, bag, maybe an array (map). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de