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,e723b158fb4ad12e X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Initialized global data Date: 1998/05/11 Message-ID: #1/1 X-Deja-AN: 352434420 References: X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 894949890 nnrp-11:23533 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada Date: 1998-05-11T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) writes: > Simon says > > < initialization') that a pragma Import would do the trick but I must > say it never occured to me to do this! > >> > > No need to rummage around in the AARM here, the rule is quite clear > and explicit in the RM (B.1(24)) > > 24 The declaration of an imported object shall not include an explicit > initialization expression. Default initializations are not performed. My AARM is more searchable than my RM. Yes, I saw that clause, indeed that was the point of "a pragma Import would do the trick", what I meant was that I : Integer; pragma Import (Ada, I); -- prevent default initialization for I'Address use ... is (IMHO) a non-obvious construction! (but thanks very much to all who've helped). There are just so many idioms in Ada, do we have a budding Coplien?