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: g2news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? Date: Wed, 03 Nov 2010 18:42:58 +0100 Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <4cd19583$0$6977$9b4e6d93@newsspool4.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: individual.net 97OfzZd5XAUb35w5PCI8OQ5v/pR+0utlYS0TlNxAHzKvmQNMeX Cancel-Lock: sha1:Ata2pO+A/cjhdEhANGvYtBeaczA= User-Agent: Opera Mail/10.63 (Win32) Xref: g2news2.google.com comp.lang.ada:16145 Date: 2010-11-03T18:42:58+01:00 List-Id: On Wed, 03 Nov 2010 18:01:55 +0100, Georg Bauhaus wrote: > 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? I now own it, thus it's "My_Buffer", of course. ;) > How? What lives in it? How does the program use it? > > I believe answering these questions leads to a better name. Yes, things like "Message_Buffer" are usually better here. Even a generic name like "Read_Buffer" could help somewhat. Vinzent. -- There is no signature.