comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Finalization of static package variables
Date: Wed, 16 May 2007 16:47:08 GMT
Date: 2007-05-16T16:47:08+00:00	[thread overview]
Message-ID: <gAG2i.117431$_c5.25133@attbi_s22> (raw)
In-Reply-To: <1179324410.556097.234870@u30g2000hsc.googlegroups.com>

Adam Beneschan wrote:
> 
> So, to go back to a point I briefly mentioned in my previous post:
> does Ada need a feature that would allow you to call your own
> finalization procedure or something when the environment task is
> completing, so that you don't have to do this using trickery?  Maybe
> something like:
> 
>     package Ada.Finalization.Environment is
>          type Finalization_Proc is access procedure;
>          procedure At_Environment_Task_Completion (Proc : in
> Finalization_Proc);
>     end Ada.Finalization.Environment;
> 
> Then, the body of the "Environment_Task" implicit task would call the
> main subprogram and then call any procedures registered with
> At_Environment_Task_Completion, in arbitrary order; you could possibly
> add an exception handler to the Environment_Task body to call the
> finalization procedures too.
> 
> That would be a simple way to solve this sort of problem without
> adding any language syntax.

Not for this problem. This was simply a misunderstanding of how to use 
JEWL; JEWL windows should always be explicitly closed.

In the general case, I'd think this indicates a design problem, not a 
failure of the language.

-- 
Jeff Carter
"I like it when the support group complains that they have
insufficient data on mean time to repair bugs in Ada software."
Robert I. Eachus
91



  reply	other threads:[~2007-05-16 16:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 21:55 Finalization of static package variables Manuel Collado
2007-05-09  8:13 ` Alex R. Mosteo
2007-05-09  8:20 ` Stephen Leake
2007-05-09 15:15   ` Adam Beneschan
2007-05-09 16:01     ` Markus E Leypold
2007-05-09 22:00     ` Manuel Collado
2007-05-09 23:27       ` Adam Beneschan
2007-05-10  4:52         ` Jeffrey R. Carter
2007-05-16  0:41           ` Randy Brukardt
2007-05-10  8:16         ` Alex R. Mosteo
2007-05-16  0:36         ` Randy Brukardt
2007-05-16 14:06           ` Adam Beneschan
2007-05-16 16:47             ` Jeffrey R. Carter [this message]
2007-05-16 19:10             ` Randy Brukardt
2007-05-22  4:41               ` christoph.grein
2007-05-22  6:25                 ` tmoran
2007-05-22 22:19                   ` Randy Brukardt
2007-05-10 10:57       ` Stephen Leake
2007-05-09 22:19   ` Manuel Collado
2007-05-10  5:38     ` AW: " Grein, Christoph (Fa. ESG)
2007-05-10 10:55     ` Stephen Leake
2007-05-11 18:12       ` Manuel Collado
2007-05-11 18:26         ` Robert A Duff
2007-05-12 19:17           ` Finalization of static package variables - summary Manuel Collado
2007-05-16  0:49             ` Randy Brukardt
replies disabled

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