comp.lang.ada
 help / color / mirror / Atom feed
From: Thomas Lotze <thomas@thomas-lotze.de>
Subject: Re: Libraries written in Ada
Date: Tue, 23 Nov 2004 12:03:09 +0100
Date: 2004-11-23T12:03:09+01:00	[thread overview]
Message-ID: <pan.2004.11.23.11.03.08.551267@ID-174572.user.uni-berlin.de> (raw)
In-Reply-To: 1966293.u6rVSTIjq0@linux1.krischik.com

On Tue, 23 Nov 2004 10:48:45 +0100, Martin Krischik wrote:

> can be preelaborated by the compiler and then no runtime elaboration is
> needed.

How can I find out whether the code produced by the compiler (not a
specific one, but any compiler that conforms to the spec) needs runtime
elaboration? Are there simple rules such as "this code pattern may or does
require runtime elaboration while that pattern can be safely assumed to
work without"? I'd have to dig further through the references, but I
haven't found a clear statement so far.

> If you like low leve: I the excample above the GNAT compiler will create a
> "package X init" procedure and a Boolean "package X initilized" (I could
> find out the actual names - but I don't think it is needed). adainit ()
> will check the boolean and call procedure when needed.

So it's not possible to reset a package in the midst of program execution?
If so, is it a conscious design decision, and what's the rationale? (The
solution seems to be offering reset functionality in the package.)

> Ada95 is a object orientated language with some form contructor/descructor
> system called controled objects. adafinal () will call the finalisation
> for static controled objects.

What if a package doesn't have any specific finalization code? Is there
some generic stuff that must always be run, or can finalization be omitted
in such a case?

-- 
Viele Gr��e,
Thomas




  reply	other threads:[~2004-11-23 11:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 11:32 Libraries written in Ada Thomas Lotze
2004-11-22 15:58 ` Martin Krischik
2004-11-22 16:28   ` Thomas Lotze
2004-11-22 16:46     ` Alex R. Mosteo
2004-11-22 19:09       ` Pascal Obry
2004-11-23 11:12         ` Alex R. Mosteo
2004-11-22 17:59     ` Martin Krischik
2004-11-22 20:36       ` Thomas Lotze
2004-11-22 21:25         ` Georg Bauhaus
2004-11-22 21:45           ` Thomas Lotze
2004-11-22 22:07             ` Georg Bauhaus
2004-11-22 22:27               ` Thomas Lotze
2004-11-23  9:54                 ` Adrien Plisson
2004-11-23  9:55                 ` Martin Krischik
2004-11-23  9:55               ` Martin Krischik
2004-11-23  9:48         ` Martin Krischik
2004-11-23 11:03           ` Thomas Lotze [this message]
2004-11-23 11:38             ` Alex R. Mosteo
2004-11-23 12:22               ` Georg Bauhaus
2004-11-23 13:20                 ` Alex R. Mosteo
2004-11-23 13:40                   ` Alex R. Mosteo
2004-11-23 12:36             ` Martin Krischik
2004-11-23 13:53               ` Thomas Lotze
2004-11-23 18:39                 ` Jeffrey Carter
2004-11-22 20:45       ` Georg Bauhaus
replies disabled

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