Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!skvax1.csc.ti.com!linnig From: linnig@skvax1.csc.ti.com Newsgroups: comp.lang.ada Subject: trouble with separate(); Message-ID: <8901131806.AA19832@ti.com> Date: 13 Jan 89 17:48:13 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 23 > I have now run into two compilers which balk at nested separate > compilations, as per the following example: > procedure A is > procedure B is separate; > begin [...] end A; > ------------ in another file... --------------- > separate (A); <-- error here?? > procedure B is > procedure C is separate; > begin [...] end B; If you are submiting these examples to your compiler I'd be surprised if it didn't balk: You should not have a semicolon after "SEPARATE(A)" This is something I usually forget too. Once I removed the extra semicolons and changed the elipsis to "NULL;" your example program compiled without error (under Tartan Ada). I agree... your compiler should be able to handle such nestings. Mike Linnig, Texas Instruments