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-Thread: 103376,c35edbbda4c7f58f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Conditional compilation in Ada? Date: 19 Nov 2004 21:35:58 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <419CE3F5.6010906@mailinator.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1100900564 4657 62.49.19.209 (19 Nov 2004 21:42:44 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 19 Nov 2004 21:42:44 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:6293 Date: 2004-11-19T21:35:58+00:00 List-Id: "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.