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,FREEMAIL_FROM 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 Path: g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!itgate.net!news-out.tin.it!feeder.news.tin.it!spool.news.tin.it!not-for-mail From: Francesco Bochicchio Subject: Re: redefinition of the operator Date: Sun, 20 Nov 2005 13:23:12 +0100 User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Message-Id: Newsgroups: comp.lang.ada References: <8399001.SXf9EOrb0V@linux1.krischik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Organization: TIN.IT (http://www.tin.it) X-Comments: Please send technical notifications to newsmaster@tin.it NNTP-Posting-Host: 87.1.255.187 X-Trace: 1132489354 reader3.news.tin.it 16215 87.1.255.187:32784 X-Complaints-To: Please send abuse reports to abuse@tin.it Xref: g2news1.google.com comp.lang.ada:6503 Date: 2005-11-20T13:23:12+01:00 List-Id: 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