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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d19c32d21e3a7992,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-20 08:54:38 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: Lin@post.com (Lin) Newsgroups: comp.lang.ada Subject: Access type scope Date: 20 Jul 2001 08:54:37 -0700 Organization: http://groups.google.com/ Message-ID: <90427822.0107200754.4f786f7@posting.google.com> NNTP-Posting-Host: 144.32.177.166 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 995644477 10795 127.0.0.1 (20 Jul 2001 15:54:37 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 20 Jul 2001 15:54:37 GMT Xref: archiver1.google.com comp.lang.ada:10344 Date: 2001-07-20T15:54:37+00:00 List-Id: 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;