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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA 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.68.191.41 with SMTP id gv9mr5862569pbc.5.1323979069074; Thu, 15 Dec 2011 11:57:49 -0800 (PST) Path: lh20ni26403pbb.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Pop function Date: Thu, 15 Dec 2011 12:57:47 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <27517259.83.1323907586856.JavaMail.geo-discussion-forums@yqgn9> NNTP-Posting-Host: 97.215.82.138 Mime-Version: 1.0 X-Trace: adenine.netfront.net 1323979068 11181 97.215.82.138 (15 Dec 2011 19:57:48 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Thu, 15 Dec 2011 19:57:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-12-15T12:57:47-07:00 List-Id: On 12/15/2011 01:38 AM, Dmitry A. Kazakov wrote: > 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 No, a public interface should never use access types, ever. Hiding those is what abstraction is about. Any public interface that uses access types is poorly designed. -- Jeff Carter "I would never want to belong to any club that would have someone like me for a member." Annie Hall 41 --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---