[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Two Windows ANSI crash examples

From: Camm Maguire
Subject: Re: [Gcl-devel] Two Windows ANSI crash examples
Date: 12 Jan 2004 13:53:00 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Hi Paul, and thanks as always!

"Paul F. Dietz" <address@hidden> writes:

> >> 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.

All I need regarding the special variable is persistence, which, to my
understanding, one also gets with a closed over lexical variable, no?

> If you want a special variable that is only visible in these
> few functions, consider putting in off in some package of its

I don't know what could be the difference between a lexical binding
captured by a closure and a special variable other than the latter is
globally visible.  Am I missing something?  What would it mean to have
a special other than to make it visible to functions without lexically
specifying the binding?  This is just for the sake of my learning, I
don't need anything other than persitent private storage, I'd think. 

> own, or even using an uninterned symbol (using Lisp's print-circle
> representation to have the same symbol appear in its various
> uses.)

This sounds interesting.  Will this compile normally?

Take care,

>       Paul

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]