comp.lang.ada
 help / color / mirror / Atom feed
* my instansiation of a generic Remote_Call_Interface need a type declared in a package of wrong categorization
@ 2013-07-25 16:26 dontspam365
  2013-07-25 16:51 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dontspam365 @ 2013-07-25 16:26 UTC (permalink / raw)


Hi!

I have created the following test packages for my question: My_RCI and Test_RCI(generic).
I am trying to create a distributed application. I would like to make several of these packages generic.

In some cases I run into the issue, that I wish to instantiate a Remote_Call_Interface package.
Below I have My_RCI. This package tries to instantiate the necessary packages. However, the __body__ of Test_RCI need a type that is declared in Core_Package. Core_Package is not of correct categorization (and I can't make it become so).
The specification part of Test_RCI and My_RCI are not depending on Core_Package.
As soon as I "with" the Core_Package I get error message of course.
Does it exists some method to "trinkle" Core_Package through to the body of Test_RCI? I have tried quite a few things to solve this, and I have at the moment given up:)

Frank

with Core_Package; --  <- not good :)
with Test_RCI;

package My_RCI is
   pragma Remote_Call_Interface;

   package This is new test_rci  (Core_package.Useful_Type);

   procedure Some_Call;
end My_RCI;

package body My_RCI is

   procedure Some_Call
   is
   begin
      null;
   end Some_Call;
end My_RCI;


generic
   type Some_Type is range <>;
package Test_RCI is
  pragma Remote_Call_Interface;

  procedure Test_RCI;

end Test_RCI;


package body Test_RCI is

   procedure Test_RCI
   is
      A_Variable : Some_Type;
   begin
      A_Variable := 1;
   end Test_RCI;

end Test_RCI;

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

end of thread, other threads:[~2013-07-27  3:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25 16:26 my instansiation of a generic Remote_Call_Interface need a type declared in a package of wrong categorization dontspam365
2013-07-25 16:51 ` Jeffrey Carter
2013-07-25 17:00 ` Adam Beneschan
2013-07-27  3:31 ` Randy Brukardt

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