comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Libraries written in Ada
Date: Tue, 23 Nov 2004 14:40:10 +0100
Date: 2004-11-23T14:40:10+01:00	[thread overview]
Message-ID: <41A33DBA.8000801@mailinator.com> (raw)
In-Reply-To: <41A33911.4090602@mailinator.com>

Alex R. Mosteo wrote:
> Georg Bauhaus wrote:
> 
>> Alex R. Mosteo <devnull@mailinator.com> wrote:
>> : Hint to adapower and adaworld :D : Set Up an explanation for the : 
>> elaboration misteries of Ada in non-ARM speak.
>>
>> It's called the GNAT User's Guide. I believe the extensive section on
>> elaboration is largely written/edited by Robert Dewar.
>> It has examples, too.
> 
> 
> Which I must have read and forgotten too. Time for another go.

Just re-reading it I see this paragraph which summarizes my rule of 
thumb. No surprise I got it from here even if I had forgotten it:

"The above pragmas allow a server to guarantee safe use by clients, and 
clearly this is the preferable approach. Consequently a good rule in Ada 
95 is to mark units as Pure or Preelaborate if possible, and if this is 
not possible, mark them as Elaborate_Body if possible. As we have seen, 
there are situations where neither of these three pragmas can be used. 
So we also provide methods for clients to control the order of 
elaboration of the servers on which they depend: (...)"

BTW as Georg pointed, that chapter is a very comprehensible read, highly 
recommended to every Ada programmer!



  reply	other threads:[~2004-11-23 13:40 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
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 [this message]
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