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,FREEMAIL_FROM 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,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? Date: Thu, 04 Nov 2010 07:30:32 +0100 Organization: Ada @ Home 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> NNTP-Posting-Host: 4vQNEkQz8jPZLol/IaLwBQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.63 (Win32) Xref: g2news2.google.com comp.lang.ada:16175 Date: 2010-11-04T07:30:32+01:00 List-Id: Le Thu, 04 Nov 2010 06:18:42 +0100, Shark8 a = = =C3=A9crit: > 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. This is more likely to occur with a type like String, but Line and Text = = may be good alternative entity names for that case. The more a type is complex, the more it will hold a semantic, and the mo= re = its name is going to be the same as a names of choice for entities. Integer means really nothing : not a measure, not a count, not a quantit= y, = not anything. Then after, if you define a derived type, like Weight_Type= , = Cardinal_Type, etc, these Weight and Cardinal really means something, so= = their variables have a strong potential to be of the same name. No chanc= e = this will occur with a name like Integer. Integer is too much simple and= = basic to hold any semantic (it has specifications, not semantic). There is also the special case of Character the OP introduced = (synonymous). This one is another story. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens.