comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Other implementations of pragma Abort_Defer?
Date: 1998/01/26
Date: 1998-01-26T00:00:00+00:00	[thread overview]
Message-ID: <01bd2aa0$c4925420$34fe82c1@xhv46.dial.pipex.com> (raw)
In-Reply-To: 6ag78c$86t$1@uuneo.neosoft.com


The problem of using such a pragma will generally be lack of portability
(unless, of course, all compiler providers agree to support it!).  The
other methods, mentioned earlier in this thread, of achieving the same
effect, although they are less concise, are portable.  I'm sure the package
mentioned in Jean-Pierre's post would be very interesting, and useful to
some.

I think this thread also raises a wider question: is there a mechanism
(formal or informal) in existence whereby compiler providers can agree
(even if it is only partially) upon the syntax and function of non-standard
pragmas and attributes?

-- 

Nick Roberts
Croydon, UK

Proprietor, ThoughtWing Software; Independent Software Development
Consultant
* Nick.Roberts@dial.pipex.com * Voicemail & Fax +44 181-405 1124 *
*** Always game for a verbal joust (usually as the turkey) ***


Pat Rogers <progers@acm.org> wrote in article
<6ag78c$86t$1@uuneo.neosoft.com>...
> Jean-Pierre Rosen wrote in message <6ads7q$2pa$2@peuplier.wanadoo.fr>...
> >>>I have a package that allows you to protect a call to a procedure from
> >>>abortion. I plan to put it on Adalog's web site as soon as I find the
> time
> >>>to write the documentation... In the meantime, I can send it to anyone
> >>>interested.
> 
> Using the GNAT-defined pragma, one says:
> 
>     procedure Unabortably_Do_This is
>     begin
>        pragma Abort_Defer;
>        -- things to do with abort deferred....
>     end Unabortably_Do_This;
> 
> 
> It is a shame we can't just say:
> 
>     pragma Convention( Abort_Deferred, Unabortably_Do_This );
> 
> 
> The real question I originally asked, though, is how many other vendors
also
> implement a pragma to do the same as Abort_Defer?  There has been some
> cooperation on other aspects, is there any here?





  reply	other threads:[~1998-01-26  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-22  0:00 Other implementations of pragma Abort_Defer? Pat Rogers
1998-01-23  0:00 ` Jean-Pierre Rosen
1998-01-23  0:00   ` Pat Rogers
1998-01-24  0:00     ` Jean-Pierre Rosen
1998-01-25  0:00       ` Pat Rogers
1998-01-26  0:00         ` Nick Roberts [this message]
1998-01-23  0:00   ` Robert Dewar
1998-01-24  0:00     ` Jean-Pierre Rosen
replies disabled

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