From ... Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed1.telenordia.se!news.algonet.se!algonet!neel.uni2.net!uio.no!Norway.EU.net!127.0.0.1!nobody From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: Pass by reference Date: 18 Nov 2000 02:09:28 +0000 Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net Lines: 24 Message-ID: <3183502168138803@naggum.net> References: <3A115DFA.E73FCC70@nyc.rr.com> <8uub0q$9t5$1@nnrp1.deja.com> <3A12D88D.5114@my-deja.com> <3183311478192040@naggum.net> <3183389778776917@naggum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: oslo-nntp.eunet.no 974513822 1568 195.0.192.66 (18 Nov 2000 02:17:02 GMT) X-Complaints-To: newsmaster@eunet.no NNTP-Posting-Date: 18 Nov 2000 02:17:02 GMT mail-copies-to: never User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: supernews.google.com comp.lang.lisp:3976 * Bruce Hoult | All you have to do is pass a function that evaluates the expression. | This is common in nearly every language for things such as sort | functions, and certainly *extremely* common in languges such as Lisp | which allow anonymous lambda functions. You mean (lexical) closures, not just anonymous lambda functions. That's a very clever implementation technique, because using something like that is _not_ spelled out as we know to be closures today in the literature of these languages at the time, like the implementation of closures is not spelled out in the Common Lisp standard, either, only their semantics. E.g., I have seen the C-based Simula compiler go to some rather astonishing lengths _not_ to implement closures. Plus, I thought it would just be confusing to try to mix in closures with this design, since the closures are not accessible in the language, and any means of achieving same is acceptable, kinda like OUT arguments in Ada if you're in quibble mode. #:Erik -- ALGORITHM: a procedure for solving a mathematical problem in a finite number of steps that frequently involves repetition of an operation. ALGOREISM: a procedure for solving an electoral problem in a finite number of steps that frequently involves repetition of an operation.