From: "DuckE" <nospam_steved94@home.com>
Subject: Re: Problem with tasks
Date: Thu, 26 Jul 2001 01:47:36 GMT
Date: 2001-07-26T01:47:36+00:00 [thread overview]
Message-ID: <YEK77.407455$p33.8303441@news1.sttls1.wa.home.com> (raw)
In-Reply-To: 3b5e887e.10671695@news.bt.es
If you move the code that creates the task outside of the task body (into a
function or procedure) things appear to work fine.
task type cell;
type cell is access cell;
procedure create_cell is
anon : acell;
begin
anon := new cell;
end create_cell;
task body cell is
begin
create_cell;
end cell;
SteveD
"Carlos Aganzo" <carlos_aganzo@terra.es> wrote in message
news:3b5e887e.10671695@news.bt.es...
> I need to create a new instance of the same task from itself,
> something like
>
> type acell is access cell;
>
> task body cell is
> anon: acell;
> begin
> anon := new cell;
> -- more code
> end cell;
>
>
> How could I do this?
>
> Is there any way to create anonymous tasks instances, Java-like?
>
> Thanks in advance.
>
> Carlos.
>
next prev parent reply other threads:[~2001-07-26 1:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 8:52 Problem with tasks Carlos Aganzo
2001-07-25 9:32 ` Jean-Pierre Rosen
2001-07-26 1:47 ` DuckE [this message]
2001-07-26 11:20 ` Carlos Aganzo
2001-07-26 16:03 ` Ted Dennison
2001-07-26 20:28 ` Ehud Lamm
2001-07-27 12:42 ` Ehud Lamm
2001-07-27 8:15 ` Carlos Aganzo
-- strict thread matches above, loose matches on Subject: below --
2004-09-04 8:57 Magik
2004-09-04 10:51 ` Frank J. Lhota
2004-09-04 11:02 ` Magik
2004-09-04 13:53 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox