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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce0900b60ca3f616 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-03 16:43:59 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-1-90.cvx1.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: List container strawman Date: Sat, 3 Nov 2001 22:30:30 -0000 Message-ID: <9s230c$107b5a$1@ID-25716.news.dfncis.de> References: <9rti6v$hcu$1@news.huji.ac.il> <1EyE7.10050$xS6.13527@www.newsranger.com> <9rue9f$j4t$1@nh.pace.co.uk> NNTP-Posting-Host: ppp-1-90.cvx1.telinco.net (212.1.136.90) X-Trace: fu-berlin.de 1004834637 33795242 212.1.136.90 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:15752 Date: 2001-11-03T22:30:30+00:00 List-Id: "Ted Dennison" wrote in message news:wVzE7.10194$xS6.14029@www.newsranger.com... > I guess if the funcional stuff is going to remain in there, then it will have to > be a controlled type. That means that users won't be able to instantiate it from > within a subprogram (yuk!). If we *do* make it limited, then another issue I > just thought of is that we wouldn't be able to make lists of lists (we had > already decided that we won't allow limited list components). However, I can't > think of a good common use for lists of lists of the top of my head. Lists of lists are frequently useful, but the problem you suggest is easily (and efficiently) solved by having lists of access values to lists. E.g.: package Item_Collections is new Collections(Game_Item); subtype Item_List is Item_Collections.Utility.Linked_List; type Game_Room is limited record ... Contents: Item_List; end record; type Room_Reference is access all Game_Room; package Room_Collections is new Collections(Room_Reference); and so on. -- Nick Roberts