From: "chris.danx" <chris.danx@ntlworld.com>
Subject: Re: Initialising stuff
Date: Thu, 18 Oct 2001 09:18:55 +0100
Date: 2001-10-18T09:18:55+01:00 [thread overview]
Message-ID: <yfwz7.355$uh1.157237@news6-win.server.ntlworld.com> (raw)
In-Reply-To: 3BCCF006.B3A57E6F@acm.org
"Jeffrey Carter" <jrcarter@acm.org> 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? <rh> 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
next prev parent reply other threads:[~2001-10-18 8:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-16 20:16 Initialising stuff chris.danx
2001-10-16 20:40 ` Ted Dennison
2001-10-16 21:26 ` chris.danx
2001-10-17 2:42 ` Jeffrey Carter
2001-10-18 8:18 ` chris.danx [this message]
2001-10-16 22:54 ` Mark Johnson
2001-10-16 23:27 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox