comp.lang.ada
 help / color / mirror / Atom feed
* Missing accept statement
@ 1990-03-15 20:35 westley
  1990-03-16  3:25 ` Karl A. Nyberg
  1990-03-16 14:34 ` arny.b.engelson
  0 siblings, 2 replies; 6+ messages in thread
From: westley @ 1990-03-15 20:35 UTC (permalink / raw)


The following program compiled and ran successfully on a Sun 4 with the
Verdix 6.0(g) Ada compiler.  There were no compilation errors, no
exceptions, and "A_Task" was put.

with Text_IO;

procedure Missing_Task_Entry is

   task A_Task is
      entry Missing_Entry;
   end A_Task;

   task body A_Task is
   begin -- A_Task
      Text_IO.Put_Line ("A_Task");
   end A_Task;

begin -- Missing_Task_Entry
   null;
end Missing_Task_Entry;

Is it valid for a task body to be lacking an accept statement for a
corresponding entry from the specification of that task?  I can't find a
specific rule in the RM, but this seems contrary to idea of the compiler
catching this class of potential bugs.

Terry J. Westley
Arvin/Calspan Advanced Technology Center
P.O. Box 400, Buffalo, NY 14225
acsu.buffalo.edu!planck!westley@hercules

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

end of thread, other threads:[~1990-03-19 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <203521@<1990Mar15>
1990-03-16 16:52 ` Missing accept statement stt
1990-03-15 20:35 westley
1990-03-16  3:25 ` Karl A. Nyberg
1990-03-16 14:34 ` arny.b.engelson
1990-03-17  6:01   ` Barry Margolin
1990-03-19 18:29   ` Terry J. Westley

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