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,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 03 Nov 2010 18:01:55 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Message-ID: <4cd19583$0$6977$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Nov 2010 18:01:55 CET NNTP-Posting-Host: bb021044.newsspool4.arcor-online.net X-Trace: DXC=]\B7Uh`jJlj016@cHD@m;j4IUKjLh>_cHTX3jmJ^[WHDj@aIm X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15171 Date: 2010-11-03T18:01:55+01:00 List-Id: On 03.11.10 17:56, Warren wrote: > There is a good practical case for _Type, IMO. If Buffer_Type is defined > simply as Buffer, then we develop an inconvenient name clash: > >> subtype Buffer is >> System.Storage_Elements.Storage_Array (1..Buffer_Size); > > In use now: > > declare > Buffer : Buffer; -- hmmmm > begin What role does the object named Buffer play? It is a buffer, yes. Is it different from other buffers? How? What lives in it? How does the program use it? I believe answering these questions leads to a better name.