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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f5de0f20558e30f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-13 21:55:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: Richard Riehle Newsgroups: comp.lang.ada Subject: Re: Implicit Instantiations - was: Re: Why is Ada NOT a good choice for a beginner to programming? Date: Mon, 13 Jan 2003 22:04:58 -0800 Organization: AdaWorks Software Engineering Message-ID: <3E23A88A.2C0969B0@adaworks.com> References: Reply-To: richard@adaworks.com NNTP-Posting-Host: 41.b2.49.c0 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 14 Jan 2003 05:55:54 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:32990 Date: 2003-01-14T05:55:54+00:00 List-Id: "Grein, Christoph" wrote: > It is true, there are some places in Ada where implicit declarations or type > conversions are done, but implicit instantiations are as yet nowhere. Implicit type conversions, along with implicit type promotions run counter to the Ada philosophy. C++ does not provide the same kind of capability for declaring new numeric types one has in Ada. This, in spite of the entertaining example from Mr. Rosen. Typedef does not do the same thing. We are still left with predefined types. The whole idea of Ada is to declare types so they will be checked by the compiler and so mismatches will be caught. If there is a problem with that, in the current standard, it needs to be fixed, but implicit conversions or promotions is simply a bad idea for this language. Actually, I don't think there is really a problem here wrt Ada, even after reading your paper. Richard Riehle