From: lyttlec <lyttlec@removegmail.com>
Subject: Is this a gnat problem?
Date: Tue, 19 Feb 2019 13:22:04 -0500
Date: 2019-02-19T13:22:04-05:00 [thread overview]
Message-ID: <q4hhgc$6g8$1@gioia.aioe.org> (raw)
I'm working through the case study in "Analsable Real-Time Systems
Programming in Ada" by Burns & Wellings. So I'm not sure if this is my
not understanding something or gnat.
The following is extracted from the Cyclics package on page 471:
---
package Cyclics is
---
task type Cyclic (S : Any_Cyclic_State) is
with Priority => S.Pri;
end Cyclic;
end Cyclics;
When compiled with gnat it fails with the following errors:
cyclics.ads:17:06: missing "end Cyclic;"
cyclics.ads:18:08: misspelling of "Cyclics"
The code compiles fine if changed to :
---
package Cyclics is
---
task type Cyclic (S : Any_Cyclic_State) is
pragma Priority (S.pri);
end Cyclic;
end Cyclics;
The book code seems correct and I'm not sure if the modified code has
the effect intended in the text.
Can anyone help?
next reply other threads:[~2019-02-19 18:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 18:22 lyttlec [this message]
2019-02-19 18:33 ` Is this a gnat problem? Marek Kuziel
2019-02-19 18:35 ` Egil H H
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