"Carlos Aganzo" a �crit dans le 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? A task type name designates the current instance within its own body, so that you can write: abort cell; to abort the current task. If you want to use it as the type name, just declare a subtype: subtype Cell_Again is Cell; -- declaration must be outside body! task body cell is anon: acell; begin anon := new cell_Again; -- more code end cell; -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr