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,330ec86e1824a689 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-28 07:59:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!uio.no!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Run-Time Type Assignment Date: Wed, 28 Aug 2002 14:59:11 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <5ee5b646.0208280304.614d11fc@posting.google.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1030546751 28968 217.17.192.37 (28 Aug 2002 14:59:11 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 28 Aug 2002 14:59:11 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:28498 Date: 2002-08-28T14:59:11+00:00 List-Id: * Robert A Duff wrote: >Kilgallen@SpamCop.net (Larry Kilgallen) writes: >> What is a downward closure ? > >The ability to pass a procedure as a parameter to a procedure. >The "downward" means the closure is passed "down" from caller to >callee. This is more restrictive than the "full closures" which are >found in Lisp and many other languages of that ilk; a full closure may >be *returned* from a procedure, and may be assigned into a variable. > >GNAT supports downward closures via the 'Unrestricted_Access attribute, >but that's not Ada (unfortunately). > >In Pascal, downward closures are very useful for making iterators and >other user-defined control structures. In Ada you use generics for this.