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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7fd5a5da28dace78 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Renaming Fixed Point Mutiplicative operator in Ada 95 Date: 1998/05/20 Message-ID: #1/1 X-Deja-AN: 355119951 References: <3561F32B.2F0B@innotts.co.uk> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 895708185 20213 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-05-20T00:00:00+00:00 List-Id: Matthew says <<(start of quote) function MultFixed (LEFT : NewFixed; RIGHT : NewFixed) return NewFixed ; (end of quote) This is a very misguided thing to do. Please, do not do this. >> What is misguided here is Matthew's entirely odd view about defining your own operators for fixed-point. Of *course* you may want to do this for many good reasons, one of which was alluded to in the original question (another good reason would be to provide modular fixed-point). The fact that Ada 95 has introduced a nasty incompatibility here is very irritating. In practice this is one of the really nasty upward non-compatibilities, and often there is no very simple fix that does not involve lots of changes to a program. THe abstraction model of Ada depends on the idea of being able to override the predefined stuff in a uniform manner. The fact that you can easily and clearly define "*" on all types except fixed-point types is definitely a non-orthogonal irritation. Of course this should not for a moment suggest the extreme reaction of the original poster, who seems to think that this is a bar to the use of fixed-point. There are a number of perfectly straightforward alternative ways to solve the problem. The most irritating case is existing legacy code, since of course the quoted original program was legal in Ada 83.