comp.lang.ada
 help / color / mirror / Atom feed
* separate embedded procedures?
@ 1995-03-07 14:45 Marcel Hawtin
  1995-03-08 16:32 ` Tucker Taft
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Hawtin @ 1995-03-07 14:45 UTC (permalink / raw)



Please help me out with this, the Ada books I've read say that you can declare
a procedure from a package body as separate and write its body in another file.
Neat idea!  So, can I have a procedure body in a package body that has a couple
of its own nested procedures and declare these procedures separte(ly)?  

I've tried, but my complier complains about it.


To try to make things clearer :


PACKAGE BODY Blah IS

  PROCEDURE Kludged_Mess IS

    PROCEDURE Small_Task IS SEPARATE;

  BEGIN

  <do some stuff using Small_Task>

  END Kludged_Mess;

END Blah;


In another file, the body of Small_Task :


SEPARATE(Blah)
PROCEDURE Small_Task IS

  <whatever>

END Small_Task;


Any help greatly appreciated,

Thanks in advance,

Marcel

replies to : hawtinml@aston.ac.uk




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

end of thread, other threads:[~1995-03-10 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-07 14:45 separate embedded procedures? Marcel Hawtin
1995-03-08 16:32 ` Tucker Taft
1995-03-10 19:50   ` Jerome D. Rosen

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