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 07:18:16 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: evangeli@cnam.fr (Evangelista Sami) Newsgroups: comp.lang.ada Subject: Re: abstract sub programs overriding Date: 6 Mar 2004 07:18:16 -0800 Organization: http://groups.google.com Message-ID: <5f59677c.0403060718.3d6aa909@posting.google.com> References: <5f59677c.0403021101.4ac263d0@posting.google.com> <5f59677c.0403050702.5387352b@posting.google.com> NNTP-Posting-Host: 81.51.94.225 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078586296 18621 127.0.0.1 (6 Mar 2004 15:18:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 6 Mar 2004 15:18:16 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:6107 Date: 2004-03-06T07:18:16-08:00 List-Id: Simon Wright wrote in message news:... > 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 -- it is gnat 3.15p > 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 i have overriden generate at a higher lever even if it is for an asbtract type, this should not raise any problem. am i wrong? > 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.