comp.lang.ada
 help / color / mirror / Atom feed
From: westley@hercules.uucp
Subject: Missing accept statement
Date: 15 Mar 90 20:35:21 GMT	[thread overview]
Message-ID: <1990Mar15.203521.28171@planck.uucp> (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

             reply	other threads:[~1990-03-15 20:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-03-15 20:35 westley [this message]
1990-03-16  3:25 ` Missing accept statement 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
     [not found] <203521@<1990Mar15>
1990-03-16 16:52 ` stt
replies disabled

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