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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99ab4bb580fc34cd X-Google-Attributes: gid103376,public From: rogoff@sccm.Stanford.EDU (Brian Rogoff) Subject: Re: Q: access to subprogram Date: 1996/07/23 Message-ID: #1/1 X-Deja-AN: 169710478 references: <4rb9dp$qe6@news1.delphi.com> organization: /u/rogoff/.organization reply-to: rogoff@sccm.stanford.edu newsgroups: comp.lang.ada Date: 1996-07-23T00:00:00+00:00 List-Id: bobduff@world.std.com (Robert A Duff) writes: In article , Brian Rogoff wrote: >ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) writes: > rogoff@sccm.Stanford.EDU (Brian Rogoff) writes: > [about nested procedures as parameters of other procedures] > > >I guess I would ask Pascal programmers how useful they found this, and whether > >any interesting idioms emerged which used this feature. Iterators. Hi Bob, While this is now straying a bit from Ada 95, I'm curious as to whether you find Pascal style iterators using downward funargs (there, I'm using Lisp terminology) superior to CLU/Sather-1.0 style iterators. And how do the Ada 95 alternatives stack up? Also, were these downward funargs widely used, or was there a small set of problems in which they were the ideal vehicle of expression, like the multidimensioal integration example? I realize in Scheme that functions are used for everything, so I am interested more in the answer for Pascal and other Ada-like languages. This is a really fascinating question in language design. I'd like find some examples like the ones Richard O'Keefe posted, and see what the best Ada 95 alternatives are. That way I can get a better sense as to how much we are really missing. - Bob (ex-Pascal-programmer) -- Brian (hopefully ex-C-programmer ;-)