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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f69b1cf0f02b9ac X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-21 18:00:39 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!newsgate.cistron.nl!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Built-in types (was Re: How can I avoid Using a Semaphore? Date: Mon, 22 Jan 2001 01:54:58 GMT Organization: Deja.com Message-ID: <94g3tf$gb9$1@nnrp1.deja.com> References: <93ti8b$bjpps$1@ID-25716.news.dfncis.de> <9BP86.270637$U46.8654942@news1.sttls1.wa.home.com> <94563n$cb6kp$1@ID-25716.news.dfncis.de> <0Cka6.290338$U46.9207275@news1.sttls1.wa.home.com> <94co6t$v27$1@nnrp1.deja.com> <94f1a8$k9r$1@nnrp1.deja.com> <94fv9d$cjt$1@nnrp1.deja.com> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Mon Jan 22 01:54:58 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x65.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:4288 Date: 2001-01-22T01:54:58+00:00 List-Id: In article <94fv9d$cjt$1@nnrp1.deja.com>, mark_lundquist@my-deja.com wrote: > In article <94f1a8$k9r$1@nnrp1.deja.com>, > Robert Dewar wrote: > > > > Carefully written Ada programs should > > not use the built-in types in any case. > > > > That seems a little broad... > > When a careful Ada programmer writes 'Integer', he's saying > that he understands the things about Integer that are > implementation-defined and that those things are "don't > cares" for him in this instance. It's not careless to say > that and mean it. It is never actively *useful* to be able to do this, since you certainly have *some* requirements on any type you supply, and you may as well make them explicit. The trouble is that 90% of programmers writing Integer explicitly do NOT know what they are saying, and make a mess. That is why most coding standards wisely suggest not using type Integer. There are some exceptions, e.g. as the subscript of the standard type String, and you cannot get away from this built in type, because of library usage. P.S. Jean Ichbiah feels it was a bad mistake to have had the type Standard.String depend on Integer in this way, but it was too late to change. Sent via Deja.com http://www.deja.com/