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-21 02:28:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!fu-berlin.de!uni-berlin.de!pec-10-119.tnt1.hh2.uunet.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: user-defined type conversion Date: Tue, 21 May 2002 11:30:50 +0200 Message-ID: References: <3CE81644.D3B7CE25@acm.org> <3CE895D9.5F635D2A@acm.org> NNTP-Posting-Host: pec-10-119.tnt1.hh2.uunet.de (149.225.10.119) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1021973323 26213561 149.225.10.119 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:24452 Date: 2002-05-21T11:30:50+02:00 List-Id: On Mon, 20 May 2002 06:21:24 GMT, Jeffrey Carter wrote: >One cannot consider a numeric type declaration as declaring a number of >overloaded functions with the same name as the type and parameters of >every other numeric type because one can apply type conversions to >numeric types not known at the point of the declaration. Yes, but there is a question, why one should need that conversions? I see only backward compatibility issues here. It is clear why it was good for Ada 83, but it is IMO a bit outdated for Ada 0x. A better way would be an explicitly instantiatable function like Unchecked_Conversion or even just Unchecked_Conversion. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de