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,a3bf872bb81a1f2b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-10 14:54:00 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!news2.euro.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: ASCL a doomed idea? X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C153926.102B17B1@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <7RQP7.4406$Yy.272014@rwcrnsc53> <9v0crv$bo2bi$2@ID-25716.news.dfncis.de> <3C13D980.748CCCDA@acm.org> <9v37s0$cdmva$3@ID-25716.news.dfncis.de> Mime-Version: 1.0 Date: Mon, 10 Dec 2001 22:37:26 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:17723 Date: 2001-12-10T22:37:26+00:00 List-Id: Nick Roberts wrote: > > "Jeffrey Carter" wrote in message > news:3C13D980.748CCCDA@acm.org... > > Or, rather, a string is a kind of list (do you really have a problem with > that concept?), and what the heck is the problem with using the same > nomenclature for both (as far as possible) to help avoid confusing the poor > Ada programmer? This isn't an ivory tower academic exercise. That's a different meaning of "list". You could use a list data structure to implement a string, just as you can for a queue or stack. And just like a queue or stack, the result has different nomenclature than a list. > > An iterator procedure is the only thing that is an iterator; anything > > else called an iterator is misnamed. > > According to which science? On which planet, Jeff? Are you serious? By definition: An iterator is something that iterates. Executable code can iterate. Types and objects cannot. > Like a file Jeff, the architypal 'container'. You read from it, you write > into it. Then in list terminology, by "writing" you mean insertion. Insertion is not advisable from an iterator. -- Jeffrey Carter