From acc01decbee8479390cef7d0693c1596afc65b02 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Oct 2013 14:35:50 +0200 Subject: [PATCH] Change *help-messages* to parameter When testing in the REPL and reloading the package, using a `defvar' causes it to collect the names and help messages for commands more than once. With `defparameter' this variable is reset every time the package is loaded. --- lisp/clark.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/clark.lisp b/lisp/clark.lisp index 03c8614..d65fa87 100644 --- a/lisp/clark.lisp +++ b/lisp/clark.lisp @@ -22,7 +22,7 @@ (defvar *db* nil "The database connection.") -(defvar *help-messages* nil +(defparameter *help-messages* nil "Help texts for commands.") (defvar *max-command-name-length* 0