From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: redefinition of the operator
Date: Sun, 20 Nov 2005 14:27:09 +0100
Date: 2005-11-20T14:27:08+01:00 [thread overview]
Message-ID: <1wdzgjz2jkpxo.bf65uzniddti.dlg@40tude.net> (raw)
In-Reply-To: pan.2005.11.20.12.16.12.433083@virgilio.it
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
next prev parent reply other threads:[~2005-11-20 13:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-20 8:49 redefinition of the operator Francesco Bochicchio
2005-11-20 10:50 ` Dmitry A. Kazakov
2005-11-20 12:16 ` Francesco Bochicchio
2005-11-20 13:27 ` Dmitry A. Kazakov [this message]
2005-11-20 21:29 ` Gautier Write-only
2005-11-21 14:23 ` Jean-Pierre Rosen
2005-11-20 11:12 ` Martin Krischik
2005-11-20 12:23 ` Francesco Bochicchio
2005-11-21 14:26 ` Jean-Pierre Rosen
2005-11-21 14:40 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox