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,43bc631fb4a56c2a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-10 11:26:00 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!news-out.nntp.airnews.net.MISMATCH!cabal10.airnews.net!news.airnews.net!cabal1.airnews.net!news-f.iadfw.net!usenet From: rlove@antispam.neosoft.com (Robert B. Love ) Newsgroups: comp.lang.ada Subject: Re: Unchecked_Conversion Date: 10 Jun 2001 18:20:45 GMT Organization: PDQ.net (using Airnews.net!) Message-ID: <41F37C284A6DE8C0.8A6A99719FF11B52.8149DC60E20677C9@lp.airnews.net> X-Orig-Message-ID: <9g0dpt$68a@library1.airnews.net> References: <9fnbtt$ild$1@e3k.asi.ansaldo.it> Abuse-Reports-To: abuse at pdq.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Sun Jun 10 13:20:45 2001 NNTP-Posting-Host: !Z;=j1k-X8PqLNX (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: RadicalNews (TM) 1.1(n) Cc: dennison@telepath.com Xref: archiver1.google.com comp.lang.ada:8516 Date: 2001-06-10T18:20:45+00:00 List-Id: In Ted Dennison wrote: > In article <9fnbtt$ild$1@e3k.asi.ansaldo.it>, Lele says... > >I should convert data types and record data types from one type to another, > > Just to back up Marc here, you should almost *never* have to convert types. The > only times I ever have to do it are when interfacing with external routines that My experience runs counter to this. My employer has chosen to use typing for every conceivable measurement. So we have type Meters, Meters_Per_Second, Feet, Feet_Per_Second, Seconds, Watts, Volts, and so on. The list is endless. To avoid conversions I would have to have hundreds of overloaded operators. And to make matters worse, we have generic vectors that can be instantiated for the basic types above. I would have to have overloaded operators for all the vector combinations. No, using Ada in my problem domain, you are constantly converting types. And it can be a pain. -- ---------------------------------------------------------------- Bob Love rlove@neosoft.com ----------------------------------------------------------------