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,3f2295ac59ed2cc0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-05 06:41:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: List Container Straw Man (NJR V5R1) Date: Wed, 05 Dec 2001 13:04:17 +0000 Organization: University of Brighton Message-ID: <3C0E1B51.253F5E98@brighton.ac.uk> References: <9u6ahm$6gdc1$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: pc2je.it.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 1007560366 15956 193.62.183.154 (5 Dec 2001 13:52:46 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 5 Dec 2001 13:52:46 GMT X-Mailer: Mozilla 4.7 [en-gb] (Win95; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:17441 Date: 2001-12-05T13:52:46+00:00 List-Id: Nick Roberts wrote: > > (3) instead of having numbered cursors inside the list object, it would be > possible to provide a separate cursor type, objects of which would be > attached to a specific list object by an Open procedure (and detached by a > Close). Why bother with Open and Close? Why not just operations like First(L) (which returns an iterator pointing to the first element of list L) to generate iterator/cursor values on demand? I'm not sure I see the point of what you're proposing... ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.comp.it.bton.ac.uk/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------