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-02-04 01:48:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.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: Tue, 04 Feb 2003 10:48:16 +0100 Message-ID: References: <1043880843.44251@master.nyc.kbcfp.com> <2b9s3vo3bbnaikqd6d4jpppfflfq2kbgfu@4ax.com> <1044278793.419261@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 1044352096 39304030 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:33749 Date: 2003-02-04T10:48:16+01:00 List-Id: On Mon, 03 Feb 2003 21:46:53 -0800, Dennis Lee Bieber wrote: >Dmitry A. Kazakov fed this fish to the penguins on Monday 03 February >2003 08:12 am: > >> it mean "may call". In FORTRAN-IV you may call a function passing >> INTEGER*4 instead of REAL.*4! >> > Every FORTRAN compiler I've worked with will give incorrect results if >you do that -- the internal representation of the passed integer does >not match that of the expected real. Yes, this is what I meant. FORTRAN-IV did not check types, it allowed to call everything for anything. > Now... practically all FORTRAN compilers supply overloaded definitions >for the /intrinsic/ functions, so for them you can safely pass such >types. The return value is not a factor as FORTRAN will implicitly >convert types to the highest format within the equation, and convert >down in needed for the assignment to the final result variable. It is no more that FORTRAN given us by heavens! (:-)) > User defined functions do NOT support such overloading. > >> It is much simplier just to say an instance of B is substitutable for >> a parameter where A is required. With further clarification what >> "substitutable" means. >> > My paraphrase: "An instance of B supports the full defined /interface/ >of A, allowing it to be used where ever an A is valid." --- Regards, Dmitry Kazakov www.dmitry-kazakov.de