Re: Global lexical variables?



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
.