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,ce0900b60ca3f616 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-02 09:53:01 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: List container strawman X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3BE2DCA0.15D8EA90@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <9rti6v$hcu$1@news.huji.ac.il> Mime-Version: 1.0 Date: Fri, 2 Nov 2001 17:49:20 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:15679 Date: 2001-11-02T17:49:20+00:00 List-Id: Ted Dennison wrote: > > Yeah, it is either going to have to be limited, or be derived from > Ada.Finalization.Controlled. Limited gets rid of the ability to perform > funtional operations on it; Controlled get rid of the ability to instantiate it > from within a subprogram. Functions may return limited values; the function call may be used as the actual for a parameter or renamed as a (constant) object of the type. Controlled requires instantiating at the library level, which is a pain, but I think it's required anyway for an unbounded structure, since otherwise you will have memory leaks when objects of the type go out of scope. -- Jeffrey Carter