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.4 required=5.0 tests=BAYES_00,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ade59281d0eea302 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: STORAGE_ERROR : EXCEPTION_STACK_OVERFLOW Date: Mon, 2 Apr 2007 19:09:50 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1175494388.509572.267790@l77g2000hsb.googlegroups.com> <1175551506.025858.161810@l77g2000hsb.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1175558898 3226 69.95.181.76 (3 Apr 2007 00:08:18 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 3 Apr 2007 00:08:18 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Xref: g2news1.google.com comp.lang.ada:14754 Date: 2007-04-02T19:09:50-05:00 List-Id: wrote in message news:1175551506.025858.161810@l77g2000hsb.googlegroups.com... > I've made some further changes to the program. I made the following > adjustments to the attribute_types. ... > This way there is not mistaking that it is dispatched. If you want to be sure that a routine is dispatching from your root type, all of the child type's operations should include "overriding" on the subprogram declarations. (Unless, of course, that's not implemented in your compiler.) That way, if you make some error such that the compiler doesn't see the routines as dispatching, you'll get a compiler error. That's much better than the hours in the debugger that you'd need otherwise. (That advice doesn't apply to Ada 95, because it doesn't have the "overriding" keyword.) Randy.