comp.lang.ada
 help / color / mirror / Atom feed
From: Egil H H <ehh.public@gmail.com>
Subject: Re: Is this a gnat problem?
Date: Tue, 19 Feb 2019 10:35:11 -0800 (PST)
Date: 2019-02-19T10:35:11-08:00	[thread overview]
Message-ID: <7cf8c053-f702-4687-a1ef-8dc27afb99e9@googlegroups.com> (raw)
In-Reply-To: <q4hhgc$6g8$1@gioia.aioe.org>

On Tuesday, February 19, 2019 at 7:22:09 PM UTC+1, lyttlec wrote:
> 
> ---
> package Cyclics is
> 
> ---
> 
>    task type Cyclic (S : Any_Cyclic_State) is
>       with Priority => S.Pri;
>    end Cyclic;
> end Cyclics;
>
<snip>
> 
> The book code seems correct and I'm not sure if the modified code has
> the effect intended in the text.
> Can anyone help?

Aspect specifications for tasks/task types, should come before *is*, like so:

task type Cyclic (S : Any_Cyclic_State)
   with Priority => S.Pri
is
end Cyclic;



-- 
~egilhh

  parent reply	other threads:[~2019-02-19 18:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 18:22 Is this a gnat problem? lyttlec
2019-02-19 18:33 ` Marek Kuziel
2019-02-19 18:35 ` Egil H H [this message]
2019-02-19 20:31   ` Jeffrey R. Carter
2019-02-19 22:47     ` lyttlec
replies disabled

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