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 X-Google-Thread: 103376,cc4f25d878383cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-10 12:32:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!news0.de.colt.net!blackbush.xlink.net!blackbush.de.kpnqwest.net!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail From: Thomas.Koenig@online.de (Thomas Koenig) Newsgroups: comp.lang.ada Subject: Re: Dimensionality Checking (Ada 20XX) Date: 10 Dec 2001 21:22:14 +0100 Organization: University of Karlsruhe, Germany Message-ID: <9v35hm$aq$1@mvmap66.ciw.uni-karlsruhe.de> References: <9v0crt$bo2bi$1@ID-25716.news.dfncis.de> <3C141540.96E5EB0D@worldnet.att.net> NNTP-Posting-Host: mvmap66.ciw.uni-karlsruhe.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.rz.uni-karlsruhe.de 1008015735 7882 129.13.201.66 X-Complaints-To: usenet@rz.uni-karlsruhe.de Xref: archiver1.google.com comp.lang.ada:17706 Date: 2001-12-10T21:22:14+01:00 List-Id: James Rogers wrote: >The SI_Units package proposed can be useful, but also terribly limiting. >The chosen units would be inappropriate for calculations dealing with >submolecular physics, or astronomy. Neither of these fields should be >systematically ignored by Ada. In principle, this could be handled by declaring a certain variable to be of type length and dimension of parsec (for example). It should be allowed to add parsecs to angstrom; a reasonable default would be to make the result of a+b to be the type of a. Of course, assignment should then convert the value to whatever the left hand side operator is. People who like to specify thermal conductivity in BTU/ft^2/(�F/in)... well, there's literature data out there which specifies this. I might just be tempted to draw the line there, though :-)