From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e1c47fd1b76b1c05 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Task entries and access to subprograms. Date: Wed, 06 Apr 2005 14:22:09 +0200 Message-ID: <4253D471.90104@mailinator.com> References: <4253B917.5070800@mailinator.com> <14oz1b2mn4ml7.14949sqgipu8q.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 7+gSKskh+xaWdX4K5LlE7gn8AY9v0LagnRJTAlCta/P856Yuw= User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en In-Reply-To: <14oz1b2mn4ml7.14949sqgipu8q.dlg@40tude.net> Xref: g2news1.google.com comp.lang.ada:10299 Date: 2005-04-06T14:22:09+02:00 List-Id: 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.