comp.lang.ada
 help / color / mirror / Atom feed
From: Lin@post.com (Lin)
Subject: Access type scope
Date: 20 Jul 2001 08:54:37 -0700
Date: 2001-07-20T15:54:37+00:00	[thread overview]
Message-ID: <90427822.0107200754.4f786f7@posting.google.com> (raw)

When I compile the main program below, the error message is "type
extension at deeper accessibility level than parent". How can I deal
with it if I need the extension? Any clues about it? Many Thanks.

--Lin

--------------------------------
with System.RPC; use System.RPC;
with test;
procedure main is 
   procedure Fred(Y: access Params_Stream_Type) is
      type APS is access all System.RPC.Params_Stream_Type;
      type msg_type is new test.Msg_Type with
      record
         params : APS;
      end record;
      X : APS;
      Msg : msg_type;
   begin
      Msg := (
        test.Msg_Type with
        params => APS (Y));
      X := APS(Y);
   end Fred;
   PS : aliased Params_Stream_Type(0);
begin
   Fred(PS'access);
end main;

with System.RPC;
package test is
  type Msg_Type is tagged
   record
     From_Par_Id : System.RPC.Partition_ID;
   end record;
end test;



             reply	other threads:[~2001-07-20 15:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-20 15:54 Lin [this message]
2001-07-21 19:19 ` Access type scope David C. Hoos, Sr.
replies disabled

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