[comp.lang.ada] Generics Question

jay@SNOW-WHITE.MERIT-TECH.COM (Jay Labhart) (09/20/89)

Hello,


I am working on a project trying to utilize the generics portion
of Ada.  Here is my problem.

I need to have the user instantiate a package from his procedure
which inturn instantiates many more packages using the users
inputed type.

Here a sample


 generic
  type x is (<>);

  package foo is
   procedure start_it ( s : x);
  end foo;

  package body foo is
   procedure start_it
     ****
      *** here is where I would like to instaniate more packages
  end foo;



I am trying to allow a tool to accept different types within
Ada, rather than utilizing only integer, float...


Your help is greatly appreciated



Jay Labhart
jay@snow-white.merit-tech.com