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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47ce8981a5759f74 X-Google-Attributes: gid103376,public From: Jerome Desquilbet Subject: Re: Linked List within a record? Date: 1996/05/09 Message-ID: <3191C6D5.167E@Rational.COM>#1/1 X-Deja-AN: 153878744 references: <4mjpb7$4gr@pine.cse.nau.edu> to: Alvin A Begaye content-type: text/plain; charset=us-ascii organization: Rational Software Corporation, France mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha) Date: 1996-05-09T00:00:00+00:00 List-Id: Alvin A Begaye wrote: > > Why won't this work > > package MyList is new gen_linked_list( Integer, "=" ); > > type arggh is record > ID : Integer; > IntList : MyList.List; > end record; > > when i compile i get. completion of nonlimited type cannot be limited. > > is there a way to do this? > > -- > Alvin Al Begaye -*- (520)523-7875 -*- aab@pine.cse.nau.edu I understand that your Gen_Linked_List generic package declares the generic type Gen_Linked_List.List formal parameter as being limited private. In that case, you can't use it as a record component type (assignment issues). The only workaround is to use an access to this type. Like this: type List_Access_Type is access MyList.List; type Hggra is record Id : Integer; Int_List_Access : List_Access_Type; end record; Of course, you'll have a manage your self allocations and deallocations of objects of type List_Access_Type. Jerome.