comp.lang.ada
 help / color / mirror / Atom feed
From: karthurs@vnet.ibm.com (Keith Arthurs)
Subject: Re: "Common" data
Date: Thu, 13 Oct 1994 13:22:01 GMT
Date: 1994-10-13T13:22:01+00:00	[thread overview]
Message-ID: <19941013.092201.114@vnet.ibm.com> (raw)

In article <9410121737.AA28756@eurocontrol.de>,
 on Wed, 12 Oct 1994 18:37:08 +0100,
 Bob Wells
>Subject: "Common" data
>From: Bob Wells #402 <wel@EUROCONTROL.DE>
>Newsgroups: comp.lang.ada
>Message-ID: <9410121737.AA28756@eurocontrol.de>
>Date: Wed, 12 Oct 1994 18:37:08 +0100
>
>G'day,
>Where abouts in the LRM does it say that I will only have one copy
>of the variable T in the following code? This is naturally what you
>would expect, that A.New_T_Value and B.New_T_Value would be working
>on the same T, but is this defined in the LRM?
>
>This is a trivialization of some comms code delivered to us, and we
>wanted to see if the behaviour was defined by the LRM.
>
[code Snipped]
>>Thanks!>

  In the LRM section 7.3:3 it states that a variable declared in the body of
a package is only visible within this body...  This defines the "visibility" of
the variable as within the package body.  The paragraph goes on to say that
the the value of such a variable remains unchanged between calls issued from
outside the package to subprograms declared in the visible part.  This defines
the "scope" as the life of the program.  So when you call a routine in package
common, no matter where it is being called from, it is working on the same
storage.


Keith Arthurs
McDonnell Douglas Corporation
Disclaimer: I do not intend for the above commentary to reflect any opinions
            of McDonnell Douglas.  If they do its by pure coincidence.




             reply	other threads:[~1994-10-13 13:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-13 13:22 Keith Arthurs [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-10-12 17:37 "Common" data Bob Wells #402
1994-10-12 14:38 ` Robert I. Eachus
1994-10-13  3:21   ` Tucker Taft
1994-10-13 11:47     ` Robert I. Eachus
1994-10-13 13:45 ` Norman H. Cohen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox