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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-30 09:27:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. Date: 30 Jan 2003 12:12:01 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <1043339266.922562@master.nyc.kbcfp.com> <7iLY9.2401$qb1.464@nwrddc01.gnilink.net> <1043680098.61106@master.nyc.kbcfp.com> <3afc3v4uur2kvd53v4ul18b5npjfm188o3@4ax.com> <1043773909.385612@master.nyc.kbcfp.com> <1043855067.848326@master.nyc.kbcfp.com> <1043938878.313737@master.nyc.kbcfp.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1043947517 29704 128.183.235.92 (30 Jan 2003 17:25:17 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 30 Jan 2003 17:25:17 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:33605 Date: 2003-01-30T17:25:17+00:00 List-Id: Dmitry A. Kazakov writes: > On Thu, 30 Jan 2003 10:01:18 -0500, Hyman Rosen > wrote: > > >Dmitry A. Kazakov wrote: > >> On Wed, 29 Jan 2003 10:44:27 -0500, Hyman Rosen > >> wrote: > >>>If you want to inherit method implementation, how can > >>>this not be tied to object representation? > >> > >> Why should it be? When you do fabs (-100), do you care whether -100 > >> has same represenation as a double? > > > >When I *implement* fabs, I most certainly care about the > >data representation! > > But you don't. It is already here. You just reuse it, because int is > to some extent a subtype of double. He said "implement", not "reuse". Please don't confuse the issue. To _implement_ fabs, you need to know the format of a floating point number, so you know which bit to flip. To _implement_ "area" for a circle, you need to know whether it is a special case of ellipse (so the 'radius' is named 'minor_axis') or is a separate type (so the 'radius' is named 'radius'). Perhaps you can show some code that demonstrates what you are talking about. -- -- Stephe