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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,57fb7af7b51c2907,start X-Google-Attributes: gid103376,public From: William A Whitaker Subject: Final comments and code for Ada Units Checking Date: 1997/09/15 Message-ID: <341CD609.4701@erols.com>#1/1 X-Deja-AN: 272605383 Reply-To: whitaker@erols.com Organization: Erol's Internet Services X-Received-On: 15 Sep 1997 06:32:09 GMT Newsgroups: comp.lang.ada Date: 1997-09-15T00:00:00+00:00 List-Id: Comments on the solicitation on Units checking in Ada are documented in SI_CMTS.TXT. I wish to thank all those who provided comments. A summary of the initial proposal and changes made in in Issue 418. The code for the Ada units checking example is in SI_CHECK.ADA. The code for the Ada units checking generic example is in SI_GEN.ADA. The code for the non-checking example is in SI_REAL.ADA. ========================================= Summary of latest changes: As a result of numerous comments, the Ada versions now are for type Floating. The AdaTPD version keeps Real, as per decision of the Working Group. subtype Dimensionless remains as an option, in agreement with SI. Many symbols had snuck in in improper (Upper) case - corrected. Other_Units have been rearranged somewhat and body improved. Test_SI now has an example of Other_Units and of Unit_Text_IO, so it runs all the packages. 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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,57fb7af7b51c2907 X-Google-Attributes: gid103376,public From: "W. Wesley Groleau x4923" Subject: Re: Final comments and code for Ada Units Checking Date: 1997/09/17 Message-ID: <341FF039.6D96@pseserv3.fw.hac.com>#1/1 X-Deja-AN: 273281523 Sender: usenet@most.fw.hac.com (News Administration) References: <341CD609.4701@erols.com> X-Nntp-Posting-Host: sparc02 Organization: Hughes Defense Communications Newsgroups: comp.lang.ada Date: 1997-09-17T00:00:00+00:00 List-Id: >From the comments: ..... As an example in SI, each of ms, Ms, mS, and MS means something quite different. Many Ada programmers have an arbitrary coding-style convention .... That does not mean we have to do likewise. Meter is _always_ to be symbolized in SI as "m", _never_ "M". Likewise, second is _always_ to be symbolized as "s", _never_ "S" (which is the _only_ acceptable symbol for siemens, the derived unit of conductance), and the kilogram _always_ as "kg", _never_ as "Kg". ...... (By the way, one of my few pet peeves with Ada is that it does not require an implementation to provide an option of making case significant for identifiers for more rigorous handling of scientific symbols, as can be done in C and C++ [hold nose tightly]--I understand and concur with the default or standard situation of having case be insignificant, but there are important scenarios, such as this, where a programmer should be able to make effective use of case.) :-) :-) :-) I can see it already: pragma Case_Sensitive ( "ms", "Ms", "mS", "MS" ); :-) :-) :-)