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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7d533acec91ae16 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Question for the folks who designed Ada95 Date: 1999/04/28 Message-ID: <37271BA3.EDFC17D@pwfl.com>#1/1 X-Deja-AN: 471895910 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <7g2qu4$ca4$1@usenet.rational.com> <3725F4F1.7B615767@rocketmail.com> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-04-28T00:00:00+00:00 List-Id: Corey Ashford wrote: > Thanks, I did find that reference after posting, but I found the > explanation lame. They didn't want to introduce a new > operator syntax and didn't want a function with a name > part of the language definition. > How was the max and min functions handled? With attributes... > I don't see how this case is really any different. > Perhaps they didn't think of it, or at least didn't address > this possibility in the RM. > One possible explanation for not making it an attribute is that it would then have to apply to all possible modular types even if there were no natural, underlying machine instruction to support it. For example if you had: type My_Type is mod 13 ; X : My_Type ; You would have to support: X := My_Type'Shift_Left (X) ; I'm not even sure if such an operation would make sense, much less be something that could be implemented at all efficiently. MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 ***To reply, remove "bogon" from the domain name.*** Visit my web page at: http://www.flipag.net/mcondic