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-Thread: 103376,9ec92fb9d5eb54fd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <4380EACF.DE432269@fakeaddress.nil> Date: Sun, 20 Nov 2005 22:29:51 +0100 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: redefinition of the operator References: <2a9izcjijn9f$.1a5pwnzxgaxtz.dlg@40tude.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.62.14.232 X-Original-NNTP-Posting-Host: 81.62.14.232 X-Trace: news.bluewin.ch 1132522192 81.62.14.232 (20 Nov 2005 22:29:52 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:6510 Date: 2005-11-20T22:29:51+01:00 List-Id: Francesco Bochicchio: > It is not exactly a cheap solution, since I need to replace the standard > operators in existing software (about 20000 DSI) and this mean to > change long_float with My_Real in most of it, but I guess with some > automated search/replace I could do it. While you are at this, I suggest to make a generic package around your My_Real. No run-time penalty with that approach on good compilers, and so you can obtain your redifined operators with several precisions without effort. ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm TeXCAD -- http://www.mysunrise.ch/users/gdm/texcad.htm NB: For a direct answer, e-mail address on the Web site!