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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,604e0f87aa06eab6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-25 10:24:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny01.gnilink.net.POSTED!53ab2750!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <7eee7v4hpvj0i5s345uonlen5315rhiau8@4ax.com> <4dkea.75440$gi1.38045@nwrdny02.gnilink.net> <5115eb96.0303220201.44527637@posting.google.com> <5115eb96.0303232053.2fcc7d78@posting.google.com> <5115eb96.0303242148.57027600@posting.google.com> <6Y_fa.5102$kU.534@nwrdny01.gnilink.net> Subject: Re: Imitation is the sincerest form of flattery X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Tue, 25 Mar 2003 18:24:18 GMT NNTP-Posting-Host: 141.157.180.238 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny01.gnilink.net 1048616658 141.157.180.238 (Tue, 25 Mar 2003 13:24:18 EST) NNTP-Posting-Date: Tue, 25 Mar 2003 13:24:18 EST Xref: archiver1.google.com comp.lang.ada:35691 Date: 2003-03-25T18:24:18+00:00 List-Id: You've got some very good points. Slow code is inefficient only if it is unnecessarily slow, and the Ada paradigm of using class-wide programming only when the programmer requests it should allow the quick implicit operations to be used in all appropriate cases. Also, I believe that there are changes that could be made to make the Ada treatment of scalars more OO. For starters, many of the attributes should be functions, e.g. instead of having the Attributes function Integer'Pred( X : Integer ) return Integer; function Integer'Max( X, Y : Integer ) return Integer; -- etc. I wish that we had the following functions defined in the Standard package: function Pred( X : Integer ) return Integer; function Max( X, Y : Integer ) return Integer; -- etc. This would allow the programmer to re-define any of these attributes for types derived from Integer (or other predefined types).