From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Costanza Newsgroups: gmane.emacs.help Subject: Re: Nested Lambda function gives error in common lisp, guile, emacs lisp but works in scheme. Why? Date: Sun, 07 Oct 2007 13:04:56 +0200 Message-ID: <5mrsqoFesppjU2@mid.individual.net> References: <1191735269.656673.146370@50g2000hsm.googlegroups.com> <1191735371.345984.188970@22g2000hsm.googlegroups.com> <1191743709.332744.228540@o80g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191782090 4257 80.91.229.12 (7 Oct 2007 18:34:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2007 18:34:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 07 20:34:47 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ieaxi-0000dt-Rs for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Oct 2007 20:34:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ieaxd-0007aM-Mp for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Oct 2007 14:34:41 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.lang.lisp,gnu.emacs.help,comp.lang.scheme Original-Lines: 23 Original-X-Trace: individual.net c2t0sX0DKI2qbEU+2XLXZwmoePCfQef5CE8KQmrJxxOL6Bstiy Cancel-Lock: sha1:pBZRWQPwPpkQNgcnzwptJE50+wI= User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) In-Reply-To: <1191743709.332744.228540@o80g2000hse.googlegroups.com> Original-Xref: shelby.stanford.edu comp.lang.lisp:230533 gnu.emacs.help:152678 comp.lang.scheme:74317 X-Mailman-Approved-At: Sun, 07 Oct 2007 14:32:24 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48192 Archived-At: David Rush wrote: > On Oct 7, 6:36 am, gnuist...@hotmail.com wrote: >> Sorry, guile is scheme. So no error in guile but errors are >> gotten in clisp and emacs. > > Well that's because it's an error in Lisp dialects where functions are > not first-class denotable values. In Common Lisp (and presumably Emacs Lisp), functions are as first-class as in Scheme and elsewhere. You just have to do a bit extra to use them as first-class values, that's all. There aren't any fundamental restrictions there because of that. (In Common Lisp, you also get lexical scoping by default, so you get what you expect if you come from a functional programming background.) Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://common-lisp.net/project/closer/