From: Aron Felix Gurski <aron@spam-block.gmx.li>
Subject: Re: package body functionality
Date: Sat, 26 May 2001 19:16:07 GMT
Date: 2001-05-26T19:16:07+00:00 [thread overview]
Message-ID: <3B10011D.13372A87@spam-block.gmx.li> (raw)
In-Reply-To: 9eoeiv$h8$1@eol.dd.chalmers.se
Staffan Dittmer wrote:
>
> 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...
The function of the compiler is to convert (in this case) package body A into
object code, not to execute the code in some other package (which, conceivably,
might not even be compiled yet).
--
-- Aron
NB: To reply by e-mail, remove "spam-block." from my address.
- - - - - - - - - - -
"Nobody suffers the pain of birth or the anguish of loving a child in order for
presidents to make wars, for governments to feed on the substance of their
people, for insurance companies to cheat the young and rob the old."
-- Lewis Lapham
next prev parent reply other threads:[~2001-05-26 19:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-26 14:28 package body functionality Staffan Dittmer
2001-05-26 17:09 ` Larry Kilgallen
2001-05-26 17:22 ` Jeffrey Carter
2001-05-26 18:31 ` DuckE
2001-05-26 19:16 ` Aron Felix Gurski [this message]
2001-05-27 13:50 ` Ken Garlington
2001-05-29 9:15 ` Philip Anderson
2001-05-29 13:26 ` Ted Dennison
2001-05-29 19:11 ` Stephen Leake
2001-05-29 20:34 ` Ted Dennison
2001-05-29 21:29 ` Marin David Condic
2001-05-30 13:46 ` Ted Dennison
2001-05-30 14:25 ` Marin David Condic
2001-05-31 19:08 ` Wes Groleau
2001-05-30 14:23 ` Stephen Leake
2001-05-31 1:37 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox