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.1 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,PP_MIME_FAKE_ASCII_TEXT autolearn=no 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,UTF8 Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? Date: Thu, 4 Nov 2010 14:23:11 +0000 (UTC) Organization: A noiseless patient Spider 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> <4cd1e5b0$0$6974$9b4e6d93@newsspool4.arcor-online.net> <63005b18-6a23-4980-ae4b-f0f84d3eb63e@j25g2000yqa.googlegroups.com> Injection-Date: Thu, 4 Nov 2010 14:23:11 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="23100"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19p/KfNhAvkqDpnJ0Pn6ZEbmtXM4eYDXTM=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:yOwKBNZHlcYT61h2oHVQbF4k8Zw= Xref: g2news2.google.com comp.lang.ada:16188 Date: 2010-11-04T14:23:11+00:00 List-Id: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= expounded in news:op.vlmu06olule2fv@garhos: > Le Thu, 04 Nov 2010 06:18:42 +0100, Shark8 > a écrit: > >> Somewhere on this thread, a while back, someone brought up the >> question about why the Standard numeric types (Integer, Float, etc) >> don't have a "_Type" suffix as an argument against such a suffix. > May be this was me in a previous thread (not this one), I remember I > opened a thread about this question last year. > >> After some thought it dawned on me that because the name like integer >> & natural are the names of the [mathematical, nor programming] > I do not know the reason, but it appears this is less a trouble with > Integer and the like, as it is unlikely some one will think of it as > an entity name. The reason it "works" is that the "type" is applied to many instances: I, J : Integer; Count : Natural; Index : Positive; You would never even think of using any of the following: Integer, Integer2 : Integer; Natural : Natural; Positive : Positive; begin Integer := 23; etc... Integer is just an inappropriate name for an Integer. A "type" may describe one to many instances of it. The naming problem only tends to occur when you have one instance of a type. Otherwise, as George has expounded, you can be more specific about the instance's name. Warren