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-31 00:38:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. Date: Fri, 31 Jan 2003 09:38:51 +0100 Message-ID: References: <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> <1043949677.919365@master.nyc.kbcfp.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1044002332 35648203 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:33632 Date: 2003-01-31T09:38:51+01:00 List-Id: On Thu, 30 Jan 2003 13:01:17 -0500, Hyman Rosen wrote: >Dmitry A. Kazakov wrote: >> But you don't. It is already here. > >But someone does. > >> You just reuse it, because int is to some extent a subtype of double. > >No, because int is convertible to double. > >Besides you, I haven't heard anyone else >who would consider that to be subtyping. >Indeed, any time I encounter such type >lattices they always seem enshrouded in >confusion. There is no agreement on definition of subtyping. Most widely used is LSP-subtyping defined in terms of substitutability. In the spirit of this definition int is an in-subtype of double, because int is substitutable for double in in-mode [as my example with fabs shows]. Further, the compiler makes this substitution automatically (no matter how), so one can say that int inherits, imports [whatsoever] fabs from double. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de