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,905a7c70138a61ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-18 01:23:55 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!ldn-newsfeed.speedport.net!newsfeed.speedport.net!news-hub.cableinet.net!blueyonder!btnet-peer!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <3BCCF006.B3A57E6F@acm.org> Subject: Re: Initialising stuff MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 18 Oct 2001 09:18:55 +0100 NNTP-Posting-Host: 62.252.129.95 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1003393118 62.252.129.95 (Thu, 18 Oct 2001 09:18:38 BST) NNTP-Posting-Date: Thu, 18 Oct 2001 09:18:38 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:14864 Date: 2001-10-18T09:18:55+01:00 List-Id: "Jeffrey Carter" wrote in message news:3BCCF006.B3A57E6F@acm.org... > "chris.danx" wrote: > > > > It's private and global inside the screens package, outside it can't be > > accessed. The operations such as put, gotoxy etc manipulate the variable, > > and to ensure proper working it requires initialisation. > > That's not global, that's package state data. Ok, my jargon isn't great but now I know, I'll call it that. > Whether you initialize it > where it's declared, or provide default initial values for all the > components of a record, or put a bunch of elaborate initialization code > in the package body, it's initialized during elaboration of the package. Not much difference other than convienance then? I'll just default initial values for record components, it's simpler(in the sense that it doesn't have an explicit initialisation block in the package). Chris