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/08 Message-ID: #1/1 X-Deja-AN: 167271859 distribution: world references: <4rb9dp$qe6@news1.delphi.com> organization: /u/rogoff/.organization reply-to: rogoff@sccm.stanford.edu newsgroups: comp.lang.ada Date: 1996-07-08T00:00:00+00:00 List-Id: ncohen@watson.ibm.com (Norman H. Cohen) writes: (By the way, I share Bob Duff's amazement at the noninclusion of downward closures--we called them downward at the time--in Ada 95, and I say this as one of those Bob described as urging the removal rather than the addition of proposed Ada-95 features. I viewed the inclusion of downward closures as the REMOVAL of an arbitrary restriction. The decision was not made in ignorance. Bill Taylor had made what I considered an irrefutable case for downward closures, showing how much easier it would be to write iterators if downward closures were allowed. It came down to a conflict between the interests of Ada programmers and the interests of a minority of Ada implementors, and in this case the interests of the few implementors using displays prevailed.) Could you summarize or provide a reference to Bill Taylor's work? Does it answer the objection that downward closures impose an inefficiency on programs that don't use them? I like closures myself, but I am thinking of the full (upward I guess you'd call them) closures of Lisp, which require garbage collection. Perhaps a "syntactically upwards compatible" Ada dialect supporting closures should be considered, especially since the Java virtual machine already imposes GC on any language that runs on it, and it will be a popular target. -- Brian