comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: Tasks, Entries, and Variables of a Class-wide type
Date: Mon, 01 Nov 2010 21:08:37 +0100
Date: 2010-11-01T21:08:38+01:00	[thread overview]
Message-ID: <4ccf1e46$0$6972$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <vwll8mopf37z$.t3cpki2vjl05$.dlg@40tude.net>

On 11/1/10 8:23 PM, Dmitry A. Kazakov wrote:
> On Mon, 01 Nov 2010 11:50:44 -0700, Jeffrey Carter wrote:
>
>> On 11/01/2010 08:30 AM, Shark8 wrote:
>>>
>>> Crap; you're right!
>>> While I certainly like the idea of having a task-construct within the
>>> language itself, I'm still quite new to using them in-practice.
>>> Thanks for pointing that out.
>>
>> Interestingly, your original problem does not exist if you use composition
>> rather than type extension.
>
> No, the original problem is that an object of unconstrained type cannot be
> returned from an entry point. That is independent on whether the constraint
> is the type tag, discriminant without a default, or array bounds.
>

One may, however, pass data indirectly, and return a pointer
or other designating value.

(Or have the task trigger the actions to be performed on
the new object without passing it around; instead, pass
the actions.)



  reply	other threads:[~2010-11-01 20:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01  5:40 Tasks, Entries, and Variables of a Class-wide type Shark8
2010-11-01  9:21 ` Dmitry A. Kazakov
2010-11-01 15:30   ` Shark8
2010-11-01 18:50     ` Jeffrey Carter
2010-11-01 19:23       ` Dmitry A. Kazakov
2010-11-01 20:08         ` Georg Bauhaus [this message]
2010-11-01 20:56           ` Dmitry A. Kazakov
2010-11-01 19:28       ` Shark8
2010-11-01 20:49         ` Jeffrey Carter
2010-11-05 12:43         ` Robert A Duff
replies disabled

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