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!wns14feed!worldnet.att.net!attbi_s52.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_s52 1100919395 24.22.63.157 (Sat, 20 Nov 2004 02:56:35 GMT) NNTP-Posting-Date: Sat, 20 Nov 2004 02:56:35 GMT Organization: Comcast Online Date: Sat, 20 Nov 2004 02:56:35 GMT Xref: g2news1.google.com comp.lang.ada:6296 Date: 2004-11-20T02:56:35+00:00 List-Id: Several years ago on this newsgroup there was a thread discussing tagged types with abstract methods. In the discussion I was suprised to hear that it was permissible to declare an instance of a type having abstract methods. It kind of stuck in my mind. I tried searching google groups for a reference to the original thread and couldn't find it. It may have had something to do with dispatching on access types (?). Prior to reading about it here, I had assumed that it was not possible to create an instance of an object with abstract methods. If that proves to be the case, I think its a good thing. Steve (The Duck) "Simon Wright" wrote in message news:x7vvfc1bjy9.fsf@smaug.pushface.org... > "Steve" writes: > > > "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. > > Sounds like a buggy compiler! suggest you have another go .. > > -- > Simon Wright 100% Ada, no bugs.