Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ames!amdcad!sun!texsun!convex!smu!spray From: spray@smu Newsgroups: comp.lang.ada Subject: Accepts in subprograms Message-ID: <51500012@smu> Date: Sat, 15-Aug-87 17:11:00 EDT Article-I.D.: smu.51500012 Posted: Sat Aug 15 17:11:00 1987 Date-Received: Sat, 22-Aug-87 15:10:46 EDT Lines: 14 Nf-ID: #N:smu:51500012:000:478 Nf-From: smu!spray Aug 15 16:11:00 1987 Does anyone know why ACCEPT statements cannot be in subprograms within a task body (LRM 9.5(8))? I think it used to be in Ada80. A colleague had a big FSM in a task and wanted to accept the next input from various places, so he tried to write a procedure GET_NEXT_ENTRY with the obvious results. He has a more conventional reader/writers task structure now, but I still couldn't answer "But, why not?" Rob Spray Electrospace Systems ...convex!smu!spray smu%spray@relay.cs.net