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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9ec92fb9d5eb54fd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: redefinition of the operator Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2a9izcjijn9f$.1a5pwnzxgaxtz.dlg@40tude.net> Date: Sun, 20 Nov 2005 14:27:09 +0100 Message-ID: <1wdzgjz2jkpxo.bf65uzniddti.dlg@40tude.net> NNTP-Posting-Date: 20 Nov 2005 14:27:08 MET NNTP-Posting-Host: ecd454fc.newsread4.arcor-online.net X-Trace: DXC=BR>5]>1;m98?0I78\m5cj::ejgIfPPld4jW\KbG]kaM8FYk:AnJB[C=4TgnR4M[HQ5[6LHn;2LCV>[ On Sun, 20 Nov 2005 13:16:20 +0100, Francesco Bochicchio wrote: > 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. You should do it anyway from software design / maintenance perspective, because Long_Float implies operations of Long_Float. Replacing operations means another type and so other type name. BTW, it is a good idea to never use standard floating point types directly. But always: type Defined_By_My_Requirements is digits ... range ...; or at least: type Should_Be_OK is new Float; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de