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,fa18fb47ddd229a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-19 14:51:16 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!nntp.abs.net!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Proposed change to BC iterator parameters Date: 19 Dec 2003 17:51:15 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1071874275 20283 192.74.137.185 (19 Dec 2003 22:51:15 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 19 Dec 2003 22:51:15 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:3588 Date: 2003-12-19T17:51:15-05:00 List-Id: "Dmitry A. Kazakov" writes: > But Robert wants it in a non-OO way! I think that he's right. The language > should support both procedural and OO approaches, for they are > complimentary. I'm not sure why you call the cursor style "OO". But yes, both styles are useful. What I *really* want is that the iterator can be written in whichever style is appropriate, and easily *used* in either style. Converting the downward closure style to what you call the OO style (which I call the cursor style) requires language support for coroutines, or something very much like coroutines. You can simulate coroutines using tasks and protected objects, but the syntax is over-the-top heavy. Not to mention the inefficiency. - Bob