comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Task entries and access to subprograms.
Date: Wed, 06 Apr 2005 14:22:09 +0200
Date: 2005-04-06T14:22:09+02:00	[thread overview]
Message-ID: <4253D471.90104@mailinator.com> (raw)
In-Reply-To: <14oz1b2mn4ml7.14949sqgipu8q.dlg@40tude.net>

Dmitry A. Kazakov wrote:

> Tagged is also OK:
> 
> type Code is abstract tagged ...;
> procedure Execute (This : in out Code) is abstract;
> 
> task type Blah is
>    entry Do_It (X : in out Code'Class);
> end Blah;
> 
> Note also that tagged object has one big advantage over an
> access-to-procedure object. You can pass the parameters for the action to
> be executed within the object using additional object's members for that
> purpose.

Exactly what I had in mind. Thanks for the clarifications.



  reply	other threads:[~2005-04-06 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-06 10:25 Task entries and access to subprograms Alex R. Mosteo
2005-04-06 10:54 ` Adrien Plisson
2005-04-06 12:06 ` Dmitry A. Kazakov
2005-04-06 12:22   ` Alex R. Mosteo [this message]
2005-04-07  2:05 ` Jeffrey Carter
2005-04-07  7:23   ` Alex R. Mosteo
2005-04-07 14:01     ` Robert A Duff
2005-04-07 23:23     ` Randy Brukardt
2005-04-08  6:49       ` Alex R. Mosteo
2005-04-08 14:49         ` Robert A Duff
2005-04-08 15:23           ` Dmitry A. Kazakov
replies disabled

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