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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c35edbbda4c7f58f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s51.POSTED!53ab2750!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <419CE3F5.6010906@mailinator.com> Subject: Re: Conditional compilation in Ada? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: NNTP-Posting-Host: 24.22.63.157 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s51 1100833242 24.22.63.157 (Fri, 19 Nov 2004 03:00:42 GMT) NNTP-Posting-Date: Fri, 19 Nov 2004 03:00:42 GMT Organization: Comcast Online Date: Fri, 19 Nov 2004 03:00:42 GMT Xref: g2news1.google.com comp.lang.ada:6281 Date: 2004-11-19T03:00:42+00:00 List-Id: "Alex R. Mosteo" wrote in message news:419CE3F5.6010906@mailinator.com... [snip] > > > > And operations that are mistakenly not overridden become run-time errors. > > Not if they're declared abstract. Then you have the same situation as > missing cases for a variant record. Plus you don't have an escape like > using "when others". > Actually in Ada I don't believe there is anything keeping you from declaring an instance of an object that has abstract methods (unlike C++). That was my recollection, I created a small test program to verify and that was my result. Steve (The Duck) > > > >> Also: If the object is declared statically, the dispatching may happen > >> statically. > > > > > > This is true, but it seems that the nature of OP's problem would prevent > > this. > >