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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,52fd60a337c05842 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-16 14:05:57 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: gautier_niouzes@hotmail.com (Gautier) Newsgroups: comp.lang.ada Subject: Re: ada paper critic Date: 16 Jun 2002 14:05:56 -0700 Organization: http://groups.google.com/ Message-ID: <17cd177c.0206161305.209b408c@posting.google.com> References: <3D0A399C.EF6F1BD9@acm.org> NNTP-Posting-Host: 217.162.208.185 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1024261557 12061 127.0.0.1 (16 Jun 2002 21:05:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Jun 2002 21:05:57 GMT Xref: archiver1.google.com comp.lang.ada:26089 Date: 2002-06-16T21:05:57+00:00 List-Id: sk: > > function "+"(A, B : My_Natural) return My_Natural is > > begin > > return 0; > > end "+"; > > > > Yep this is fun too. If this definition is not in an > > obvious location it can take a long time to debug > > when this bites you. AG: > Well, you must be a bit slow debugging-wise ;) > It's a very nice, well-determined, 100% reproducible > bug. Should only take a few seconds to trace through > the code and see where it comes from. I only wish > all the bugs were that easy... Not so sure: if you inline that "+" function, the optimization is on, and the "victim" is not prepared to search such a strange bug it guess it could take more than "a few seconds"! ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, address on the Web site!