From: Philip Anderson <phil.anderson@amsjv.com>
Subject: Re: package body functionality
Date: Tue, 29 May 2001 10:15:54 +0100
Date: 2001-05-29T10:15:54+01:00 [thread overview]
Message-ID: <3B1368CA.E5AD8884@amsjv.com> (raw)
In-Reply-To: PC7Q6.398$HP.139130993@newssvr10-int.news.prodigy.com
Ken Garlington wrote:
>
> 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!
There could be other differences because of the order of actions,
e.g.
package body A is
variable: some_type:=call_some_function_outside_A;
V2 : some_type := variable;
end A;
&
package body B is
variable: some_type;
V2 : some_type := variable; -- default/uninitialised value of
variable
begin
variable:=call_some_function_outside_B;
end B;
The second option also allows you to include an exception handler to
catch any exception raised by function outside B
--
hwyl/cheers,
Philip Anderson
Alenia Marconi Systems
Cwmbr�n, Cymru/Wales
next prev parent reply other threads:[~2001-05-29 9:15 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
2001-05-27 13:50 ` Ken Garlington
2001-05-29 9:15 ` Philip Anderson [this message]
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