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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fe441248ffa1c543 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: What's wrong with this? Date: 1997/05/16 Message-ID: #1/1 X-Deja-AN: 242011493 References: Organization: New York University Newsgroups: comp.lang.ada Date: 1997-05-16T00:00:00+00:00 List-Id: Anders says <> Nope, the example is wrong (and does not appear in the current GNAT documentation). The message is exactly right. Pragma Export cannot be applied to a frozen entity, but a body freezes everything. So you MUSt have a separate spec, and the pragma EXPORT must come before thhe body -- typically it is associated with the spec (which makes sense, it is certainly part of the interface!)