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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,25d835bb9a4a003f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <561e0a4a-c6c0-42db-9f31-a70f4eae1ed9@a21g2000yqc.googlegroups.com> Date: Thu, 5 Nov 2009 09:37:48 +0100 Message-ID: <5vzuqtkwuhwy$.21swwhszn06r.dlg@40tude.net> NNTP-Posting-Date: 05 Nov 2009 09:37:44 CET NNTP-Posting-Host: 29262b6c.newsspool3.arcor-online.net X-Trace: DXC=BE4fL5m41?2LNKYb?b>076McF=Q^Z^V384Fo<]lROoR18kF7enW;^6ZC`4IXm65S@:3>?HOU=^fLje<5 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8987 Date: 2009-11-05T09:37:44+01:00 List-Id: On Wed, 04 Nov 2009 19:33:58 -0500, Stephen Leake wrote: > "Peter C. Chapin" writes: > >> In the past I used _Type as a suffix for all of my types. However, there >> are times when that doesn't seem to fit. After all the standard types don't >> (usually) use a _Type suffix (Character, Integer, Positive, Vector, etc). > > The standard is Just Wrong. But we have to live with it. Huh, it is not too late to introduce: package Standard is ... subtype Integer_Type is Integer; end Standard; But Know what? "subtype" looks awfully wrong! Should not it be "subtype_type"? What about type_type String_Type is array_type (Integer_Type range <>) of Character_Type; (:-)) Consider it this way, if _Type is felt appropriate then that is semantically equivalent to types having a separate name space. The latter could be introduced in Ada at any time, being fully backward compatible. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de