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,a4cc6fdc99d3fe2a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-30 07:25:13 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: package body functionality Date: 30 May 2001 10:23:22 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <9eoeiv$h8$1@eol.dd.chalmers.se> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 991233567 6948 128.183.220.71 (30 May 2001 14:39:27 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 30 May 2001 14:39:27 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: archiver1.google.com comp.lang.ada:7879 Date: 2001-05-30T14:39:27+00:00 List-Id: Ted Dennison writes: > In article , Stephen Leake says... > > > >f97stdi@dd.chalmers.se (Staffan Dittmer) writes: > > > >> package body B is > >> variable: some_type; > >> begin > >> variable:=call_some_function_outside_B; > >> end B; > >> > >> I know that in B the variable will be assigned > >> every time a program using the package is run, > > > >This is seriously wrong! B.variable is _not_ set many times. It > >would be interesting to understand how you got that impression. > > He said every time the *program* is run, which is quite correct. I'll admit the > possiblity that he meant something else (although I'm having trouble mentally > concoting a reasonable alternative), but that's not what he wrote. Hmm, I guess I read "subprogram from the package", rather than "program using the package". Sorry! -- -- Stephe