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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fed2e7871ca258cd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-21 11:22:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: List Container Strawman 1.4 Date: Fri, 21 Dec 2001 13:47:52 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <9vbc89$eb6li$2@ID-25716.news.dfncis.de> <9ve8jn$esilp$1@ID-25716.news.dfncis.de> <9viq4m$fjbkr$1@ID-25716.news.dfncis.de> <9vvopp$gm2$1@nh.pace.co.uk> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1008960473 20204 136.170.200.133 (21 Dec 2001 18:47:53 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 21 Dec 2001 18:47:53 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:18227 Date: 2001-12-21T18:47:53+00:00 List-Id: Yeah, I suppose you could just start adding new elements to the list with the Singleton subprogram. I guess I'm one of those guys who likes to explicitly clear things out - especially dynamic data structures when I'm done with them. Presumably, that would make the storage available for some other dynamic data structure, if its implemented right. Assuming finalization and handling things properly with scope, I realize this may not be strictly necessary - but I like to know I can clear the structure and reclaim the storage any time I just get that uncontrollable urge to do so. This might be more of an embedded thing than a workstation-app thing. I know that in my current domain, the OS may request the app minimize itself to gain back storage needed for some other app. Here, you want to be able to say "Hey, here's this collection of stuff I was saving, but I suppose I could go reload it when I need it, so here you go - have my storage and I'll get it back later..." An alternative might be to define a constant called Null_List that could be assigned to a List and force it to get cleared out. This is not unlike Null_Unbounded_String and would be keeping in the flavor of mirroring Ada.Strings.Unbounded wherever possible. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Ted Dennison" wrote in message news:kbLU7.7081$XC5.9293@www.newsranger.com... > > When do you need to actually deal with a null list? If its just a matter of > reusing the list object for a new set of values, then you can do that by using > one of the constructor functions. >