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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,842accb6a7d76669 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-14 20:10:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!uni-erlangen.de!fu-berlin.de!uni-berlin.de!ppp-1-25.cvx2.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: Thu, 15 Nov 2001 03:49:11 -0000 Message-ID: <9svf7r$161cka$2@ID-25716.news.dfncis.de> References: <9s941i$11mrei$3@ID-25716.news.dfncis.de> <9s9nkr$11se3h$1@ID-25716.news.dfncis.de> <3BEC9BB8.6010708@telepath.com> <3BEC9F87.DBED743D@san.rr.com> <3BF1567C.89167E12@san.rr.com> <9ssu28$150jnq$2@ID-25716.news.dfncis.de> <3BF2976C.8C545E25@boeing.com> <_mzI7.24675 <3BF2F0E7.5DD40B4B@boeing.com> NNTP-Posting-Host: ppp-1-25.cvx2.telinco.net (212.1.140.25) X-Trace: fu-berlin.de 1005797436 39891594 212.1.140.25 (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:16553 Date: 2001-11-15T03:49:11+00:00 List-Id: "Jeffrey Carter" wrote in message news:3BF2F0E7.5DD40B4B@boeing.com... > Ted Dennison wrote: > > The problem with that is that it won't work in an initialization. > > Since a list will initialize itself to empty, I don't see that as a > problem. We may be willing to allow people to use lists in a functional > manner, with all the implicit deallocation and allocation for deep > copies that implies for a dynamic structure, but we certainly don't want > to encourage it. I think there will sometimes be situations where it would be pretty inconvenient not to be able to build a singleton list value 'on the fly'. Suppose we wanted to use someone's wonderful utility procedure Send_Mail to send an e-mail Father Christmas. We might want to make a call such as: procedure Send_Mail (Recipient => Single("santa@north.pole"), CC => To_List(("taxman@inland.rev", "thewishfairy@nevernever.land")); Text => "Dear Santa, please could I have ...", Attachments => Single(List_of_Presents)); This call has three lists made up inline. Imagine havine to declare two or three list variables instead, and then call a procedure for each to give it the right value. Not really a problem, but a lot less convenient. -- Best wishes, Nick Roberts