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,89814ab9e757697a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-19 14:12:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.cgocable.net!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!59ce1190!not-for-mail Message-ID: <3CE8154B.E28B7880@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: user-defined type conversion References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 19 May 2002 21:12:56 GMT NNTP-Posting-Host: 63.184.18.62 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1021842776 63.184.18.62 (Sun, 19 May 2002 14:12:56 PDT) NNTP-Posting-Date: Sun, 19 May 2002 14:12:56 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:24387 Date: 2002-05-19T21:12:56+00:00 List-Id: Russ wrote: > > "David C. Hoos, Sr." wrote in message news:... > > No, because a type conversion has the same syntax as a function, so > > there's no way to "read the programmer's mind," as to what he intended. > > Type conversion IS a function! Are you sure? Given type Real is new Float; F : Float; R : Real; a statement such as R := Real (F); probably has no code generated for the type conversion. No function call, no inline expansion, nothing. -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail