comp.lang.ada
 help / color / mirror / Atom feed
* Gnat Problem - Freezing too soon
@ 2019-02-28 18:34 russ lyttle
  2019-02-28 21:19 ` Anh Vo
  2019-02-28 21:22 ` Simon Wright
  0 siblings, 2 replies; 22+ messages in thread
From: russ lyttle @ 2019-02-28 18:34 UTC (permalink / raw)


Example from the bookAnalysable Real-Time Systems :

1  package Environment_Monitor.Ch4_Status is --Protected
2    protected type Methane_Agent (Ceiling : Priority)
3     with Priority => Ceiling
4       is new CH4_Safety
5    with
6      overriding function Check_Safe return Methane_Status;
7      overriding procedure Set_Safety (M : Methane_Status);
8    private
9       Current_Status : Methane_Status := Motor_Unsafe;
10   end Methane_Agent;
11 end Environment_Monitor.Ch4_Status;

Gnat complains that Methane_Agent is frozen at line 2, and line 3 is 
trying to change an attribute after being frozen.

I've found some discussion about gnat freezing things too soon. Is there 
an accepted work-around for the general problem until this issue is 
resolved?

Thanks.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-03-04  0:33 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28 18:34 Gnat Problem - Freezing too soon russ lyttle
2019-02-28 21:19 ` Anh Vo
2019-02-28 21:31   ` russ lyttle
2019-02-28 21:22 ` Simon Wright
2019-02-28 22:11   ` russ lyttle
2019-03-01  0:49     ` Anh Vo
2019-03-01 14:21       ` russ lyttle
2019-03-01 16:54         ` Anh Vo
2019-03-01 21:50           ` russ lyttle
2019-03-02  1:08             ` Anh Vo
2019-03-02  3:55               ` russ lyttle
2019-03-02  5:50                 ` Anh Vo
2019-03-02 20:19                   ` russ lyttle
2019-03-02 21:35                     ` Simon Wright
2019-03-03 20:42                       ` russ lyttle
2019-03-03 21:26                         ` Simon Wright
2019-03-04  0:33                           ` russ lyttle
2019-03-02 14:09             ` Simon Wright
2019-03-01  8:12     ` Simon Wright
2019-03-01 14:17       ` russ lyttle
2019-03-01 18:10     ` Simon Wright
2019-03-01 21:35       ` russ lyttle

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