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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,905a7c70138a61ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 13:40:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjcppf01.usenetserver.com!usenetserver.com!newsfeeder.randori.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Initialising stuff Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 16 Oct 2001 16:40:19 EDT Organization: http://www.newsranger.com Date: Tue, 16 Oct 2001 20:40:19 GMT Xref: archiver1.google.com comp.lang.ada:14752 Date: 2001-10-16T20:40:19+00:00 List-Id: In article , chris.danx says... >I need a variable (global) for a screen package (write to video memory) and >would like it to be initialised once and once only when the package is >"with"ed. Why not just initialize the variable where it is declared then? >package body xxx is > ... >begin > initialise screen stuff here; >end xxx; That'll work too. The only possible "issues" are if you try to reference stuff in another package here, you have to make sure that package (and everything it depends on) has already been elaborated. But if its a one-liner, you might as well just initialize the variable at the declaration and be done with it. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.