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:17:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!59ce1190!not-for-mail Message-ID: <3CE81644.D3B7CE25@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:17:04 GMT NNTP-Posting-Host: 63.184.18.62 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1021843024 63.184.18.62 (Sun, 19 May 2002 14:17:04 PDT) NNTP-Posting-Date: Sun, 19 May 2002 14:17:04 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:24389 Date: 2002-05-19T21:17:04+00:00 List-Id: Russ wrote: > > type inches is new float; > type feet is new float; > > function inches ( arg: feet ) return inches is > begin > return inches ( 12.0 * float(feet) ); > end inches; Assuming you meant Arg rather than Feet in the return statement, it appears that this function attempts infinite recursion. This confusion among the multiple meanings of "inches" might be part of why the language does not allow this. -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail