Re: Global lexical variables?
- From: tar@xxxxxxxxxxxxx (Thomas A. Russ)
- Date: 30 Oct 2008 15:11:59 -0700
Russell Wallace <russell.wallace@xxxxxxxxx> writes:
On Oct 30, 8:42ˇ pm, Kaz Kylheku <kkylh...@xxxxxxxxx> wrote:
The ``it'' that CLISP is not approving of here is that you are trying
to use an undefined variable. ˇ This is not well-defined behavior in Lisp.
But I did define it:
(defvar clauses-table
(make-hash-table
:test 'equal))
Doesn't that count as a definition?
Well, that certainly should count.
But where is this definition in relation to the REFUTE function, since
that is where CLISP was complaining in your earlier post.
Oh, and by the way, it would be good for you to adopt the special
variable naming convention. It makes the meaning clearer:
(defvar *clauses-table* ...)
--
Thomas A. Russ, USC/Information Sciences Institute
.
- Follow-Ups:
- Re: Global lexical variables?
- From: Russell Wallace
- Re: Global lexical variables?
- References:
- Global lexical variables?
- From: Russell Wallace
- Re: Global lexical variables?
- From: Kaz Kylheku
- Re: Global lexical variables?
- From: Russell Wallace
- Global lexical variables?
- Prev by Date: Re: Global lexical variables?
- Next by Date: Re: Lisps memory usage (was: Efficient way to create strings? (was: How to Write a Spelling Corrector))
- Previous by thread: Re: Global lexical variables?
- Next by thread: Re: Global lexical variables?
- Index(es):