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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,436e4ce138981b82 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-06 01:35:26 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: abstract sub programs overriding Date: 06 Mar 2004 09:31:38 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <5f59677c.0403021101.4ac263d0@posting.google.com> <5f59677c.0403050702.5387352b@posting.google.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 1078565725 20149 62.49.19.209 (6 Mar 2004 09:35:25 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 6 Mar 2004 09:35:25 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:6102 Date: 2004-03-06T09:31:38+00:00 List-Id: Marius Amado Alves writes: > I mean the *actual* Generate that you are trying to call is not > available. I guess the compiler/system tries to execute the abstract > Generate which is the only one available and naturally fails. Try > moving the actual Generate declaration to a public part. Assuming GNAT -- The program certainly runs without exceptions if you do this. However I'm not sure that it isn't a GNAT bug; after all, any concrete Element_Record must have a concrete Generate. If you run the original program (with some data components in the records, so you can track what's what) the value returned looks just fine. -- Simon Wright 100% Ada, no bugs. ^^^^^^^ !