comp.lang.ada
 help / color / mirror / Atom feed
From: <adaworks@sbcglobal.net>
Subject: Re: embed accept statement in procedures not possible?
Date: Fri, 4 May 2007 13:22:24 -0800
Date: 2007-05-04T13:22:24-08:00	[thread overview]
Message-ID: <RBM_h.426$TE7.271@nlpi070.nbdc.sbc.com> (raw)
In-Reply-To: C26125DB.A99CF%yaldnif.w@blueyonder.co.uk


"(see below)" <yaldnif.w@blueyonder.co.uk> wrote in message 
news:C26125DB.A99CF%yaldnif.w@blueyonder.co.uk...
> On 4/5/07 16:04, in article
> 1178291081.936739.131740@c35g2000hsg.googlegroups.com, "Gerd"
> <GerdM.O@t-online.de> wrote:
>
>>
>> GNAT tells me: "enclosing body for accept must be a task". But - the
>> accept in procedure p _is_ in a task. So why is this not allowed?
>
> Because it is not legal Ada.
> See Ada (2005) Reference Manual Section 9.5.1, thus:
>
Bill is correct in his reply.   However, an accept statement
is the implementation of an entry at the specification level.
And one can rename an entry into a procedure.   It is not
likely that this will help with the stated problem, but there
might be some solution lurking in that capability.

Richard Riehle 





  reply	other threads:[~2007-05-04 21:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-04 15:04 embed accept statement in procedures not possible? Gerd
2007-05-04 16:58 ` Jean-Pierre Rosen
2007-05-04 19:45   ` Adam Beneschan
2007-05-09  7:12     ` Jean-Pierre Rosen
2007-05-09 14:56       ` Adam Beneschan
2007-05-10 11:43         ` Jean-Pierre Rosen
2007-05-10 17:26           ` Pascal Obry
2007-05-04 17:03 ` (see below)
2007-05-04 21:22   ` adaworks [this message]
2007-05-05 23:54 ` Stephen Leake
replies disabled

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