comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: GNAT: storage error and tasks
Date: 2000/02/05
Date: 2000-02-05T00:00:00+00:00	[thread overview]
Message-ID: <87i4b1$it8$1@nnrp1.deja.com> (raw)
In-Reply-To: 86n1ae$bc8$1@nnrp1.deja.com

In article <86n1ae$bc8$1@nnrp1.deja.com>,
  Ted Dennison <dennison@telepath.com> wrote:
> The way to get around this problem is to create a task type
> for your task, and perform a
>    for My_Task_Type'Storage_Size use XXXXXX;

This is improper advice, since the feature referenced above
is in annex J, which means that there is a preferred way of
doing things. Never recommend the use of Annex J features
for new code!

use the Storage_Size pragma instead, since it is far more
flexible (allowing different instances of a task type to
have different sizes, something that is impossible with the
obsolete form).


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-02-05  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-26  0:00 GNAT: storage error and tasks pjbrooke
2000-01-26  0:00 ` Ted Dennison
2000-02-05  0:00   ` Robert Dewar [this message]
2000-01-26  0:00 ` Aidan Skinner
2000-01-27  0:00   ` pjbrooke
replies disabled

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