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,5bef5e9c5bedc675 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-02 11:46:46 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: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Date: Fri, 02 Jan 2004 19:46:45 +0000 Message-ID: References: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1073072805 14679 62.49.62.197 (2 Jan 2004 19:46:45 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 2 Jan 2004 19:46:45 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4046 Date: 2004-01-02T19:46:45+00:00 List-Id: On Fri, 02 Jan 2004 20:31:53 +0100, Per Sandberg wrote: > To avoid elaboration code is quite simple, just write all your packages > in such a way that no elaboration code is needed. > > The simplest way to make this hapend is to add > "pragma pure" Can't use pure because this package has access types and an instance of a record type. > or > "pragma preelaborate" > in all your specs. > Then the compiler will force you to write the code in suh a way that no > elaboration code is needed. I tried this one, but the that code is still generated. Thanks, Luke.