[comp.lang.ada] trouble with separate

linnig@skvax1.csc.ti.com (01/14/89)

>    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