From: Francesco Bochicchio <bockman@virgilio.it>
Subject: Re: redefinition of the operator
Date: Sun, 20 Nov 2005 13:23:12 +0100
Date: 2005-11-20T13:23:12+01:00 [thread overview]
Message-ID: <pan.2005.11.20.12.23.12.77588@virgilio.it> (raw)
In-Reply-To: 8399001.SXf9EOrb0V@linux1.krischik.com
Il Sun, 20 Nov 2005 12:12:00 +0100, Martin Krischik ha scritto:
>
> However from a practical point of view: You should not define your own
> operators unless you also define your own type as well. So consider :
>
> type My_Float is Long_Float;
>
> function "+"(X, Y : My_Float) return My_Float;
>
> and then a
>
> use type MY_OPERATORS.My_Type;
And this is also going to do the trick, according to the other answer I
received (did not try jet).
>
> And writing package name all upper case is out of fashion for at least
> 10 years. Actually: Writing anything all upper case in Ada is out of
> fashion since the introduction of Ada 95. You can do it if you like but
> it is realy un-cool ;-) .
>
I know, but I learned ADA during maintenance of over-ten-years-old code
(predating ADA 95) and I had to keep the existing style... and now my
fingers go search the shift and capslok all by themselves :-(
Ciao
------
FB
> Martin
next prev parent reply other threads:[~2005-11-20 12:23 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
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 [this message]
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