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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b61052ba3fdc8c26 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-05 07:22:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!fr.clara.net!heighliner.fr.clara.net!157.161.139.35.MISMATCH!60370065!news.imp.ch!psinet-eu-nl!psiuk-p4!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Integers and Mathematical Correctness Date: Mon, 5 Nov 2001 09:47:24 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9s68pu$9j5$1@nh.pace.co.uk> References: <1f26o22.1xfvwvo111pfi4N%csampson@inetworld.net> <9rrsou$bl1$1@nh.pace.co.uk> <3BE4232D.6CC9ACA3@adaworks.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1004971646 9829 136.170.200.133 (5 Nov 2001 14:47:26 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 5 Nov 2001 14:47:26 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:15810 Date: 2001-11-05T14:47:26+00:00 List-Id: Just a quick look at my C book here indicates that there are functions "floor" and "ceil", but I didn't see anything like 'Mantissa and 'Exponent and so on. Not to mention the fact that they are not exactly connected to the data type, so there is no real distinction between, say, a Float and a Long_Float. (I didn't even bother to check for equivalents to things like 'Range, 'First and 'Last - althought there are probably ways of getting there - just not nearly so slick and convenient.) I grant you that other languages can and sometimes do provide similar features. Just not as an inherent part of the language describing the characteristics of data types, objects, etc. I think attributes are one of the more handy features of Ada - especially for math oriented computing - and one that is not always duplicated as thoroughly or as nicely in other languages. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Richard Riehle" wrote in message news:3BE4232D.6CC9ACA3@adaworks.com... > > In other languages, these are provided as functions. In Ada, they are > attributes that > behave as if they were functions. >