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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4751d44ff54a2c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-04 18:44:24 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: 64-bit integers in Ada Date: 4 Aug 2002 18:44:24 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208041744.6ef505af@posting.google.com> References: <3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net> <5ee5b646.0208030424.39703482@posting.google.com> <3D4C2805.62563584@adaworks.com> <5ee5b646.0208040607.ebb6909@posting.googOrganization: LJK Software NNTP-Posting-Host: 208.224.78.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1028511864 12800 127.0.0.1 (5 Aug 2002 01:44:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 5 Aug 2002 01:44:24 GMT Xref: archiver1.google.com comp.lang.ada:27682 Date: 2002-08-05T01:44:24+00:00 List-Id: Kilgallen@SpamCop.net (Larry Kilgallen) wrote in message news:... > Let's cure _all_ such individuals, by standardizing on > 4096 bits as the size for Standard.Integer :-) Actually I think the rule of avoiding using explicit references to Integer is pretty well established. yes, you see occasional shops that violate this rule, but not many (in our experience of seeing code from hundreds of serious projects using Ada). Actually the above would almost warrant presentation without a smiley (as a way of effectively removing the injudicious Standard.Integer type from the language if it were not for the darned cross contamination with type String. What I would have done for the Ada design is to have only *one* predefined type which would be called something like type String_Index is range 1 .. Implementation_Defined; and leave all other integer types out of standard. I think that would have worked better, and people would not have "misused" String_Index as they occasionally misuse Integer. I feel differently about Float incidentally, I think it is reasonable to have predefined Float and Long_Float types. It is simply asking too much for all useful fpt library packages to be generic since they can't easily speak to one another if you do that.