comp.lang.ada
 help / color / mirror / Atom feed
* Nested separate compilations
@ 1989-01-12 19:45 Bill Wolfe
  1989-01-13 18:58 ` William Thomas Wolfe,2847,
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Wolfe @ 1989-01-12 19:45 UTC (permalink / raw)



   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);

      procedure B is

         procedure C is separate;

      begin [...] end B;

      ------------ in another file... ----------------

      separate (A.B);

      procedure C is begin [...] end C;

   Now according to the LRM, 

         subunit ::= [...] proper_body

         proper_body ::= subprogram_body [...]

         subprogram_body ::= [...] declarative_part [...]

         declarative_part ::= [...] later_declarative_item

         later_declarative_item ::= body [...]

         body ::= [...] body_stub

   and so nested separate compilation should be perfectly legal.  If there's
   anything in the LRM prohibiting this, I don't see it.  Is nested separate
   compilation legal?  If so, when will it be incorporated into the ACVC?  



                                            Bill Wolfe

                                     wtwolfe@hubcap.clemson.edu

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

end of thread, other threads:[~1989-01-13 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1989-01-12 19:45 Nested separate compilations Bill Wolfe
1989-01-13 18:58 ` William Thomas Wolfe,2847,

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