From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.169.1 with SMTP id w1mr16153407qay.4.1374769573924; Thu, 25 Jul 2013 09:26:13 -0700 (PDT) X-Received: by 10.49.1.112 with SMTP id 16mr1619784qel.20.1374769573911; Thu, 25 Jul 2013 09:26:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.stack.nl!feeder.erje.net!us.feeder.erje.net!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit4.readnews.com!209.85.216.87.MISMATCH!gh1no295658qab.0!news-out.google.com!dk8ni1421qab.0!nntp.google.com!cb17no233208qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Jul 2013 09:26:13 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=84.202.105.201; posting-account=ksRsxQoAAABy6zt79noBFvM9-gP_mwCL NNTP-Posting-Host: 84.202.105.201 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <14e47bb4-a838-47f8-8617-eb404679d3af@googlegroups.com> Subject: my instansiation of a generic Remote_Call_Interface need a type declared in a package of wrong categorization From: dontspam365@gmail.com Injection-Date: Thu, 25 Jul 2013 16:26:13 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:16511 Date: 2013-07-25T09:26:13-07:00 List-Id: 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;