|
From: | Paul F. Dietz |
Subject: | Re: [Gcl-devel] Two Windows ANSI crash examples |
Date: | Fri, 09 Jan 2004 05:40:48 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031210 |
This works, but I was wondering whether there was a way in lisp to make *internal-error-parms* only visible inside this function, yet 'special'/persistent, i.e. like a static local variable in C.You can do this: (defun clcs-universal-error-handler-generator () (let ((internal-error-parms ...)) #'(lambda (...) ...)))
This doesn't make the variable special, though. If you want a special variable that is only visible in these few functions, consider putting in off in some package of its own, or even using an uninterned symbol (using Lisp's print-circle representation to have the same symbol appear in its various uses.) Paul
[Prev in Thread] | Current Thread | [Next in Thread] |