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,FROM_WORDY autolearn=no 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-27 06:51:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr10-int.news.prodigy.com.POSTED!not-for-mail From: "Ken Garlington" Newsgroups: comp.lang.ada References: <9eoeiv$h8$1@eol.dd.chalmers.se> Subject: Re: package body functionality Organization: ex-FlashNet, now Prodigy X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: NNTP-Posting-Host: 65.65.208.16 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr10-int.news.prodigy.com 990971439 6207069 65.65.208.16 (Sun, 27 May 2001 09:50:39 EDT) NNTP-Posting-Date: Sun, 27 May 2001 09:50:39 EDT Date: Sun, 27 May 2001 13:50:39 GMT Xref: archiver1.google.com comp.lang.ada:7814 Date: 2001-05-27T13:50:39+00:00 List-Id: If you're asking "are these different," the only difference I can think of is that a given compiler *might* optimize them differently, up to and including eliminating the variable altogether! "Staffan Dittmer" wrote in message news:9eoeiv$h8$1@eol.dd.chalmers.se... : the question might be a bit obscure but : considering the two package bodies below : : package body A is : variable: some_type:=call_some_function_outside_A; : end A; : : 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, : but is this also true for A, or will the variable in : this case only be assigned at compile time ? : : saturdays usually makes me confused... : : / Staffan Dittmer