I'm having problems 'properly' using defparameter (or defvar or defconstant) in my code. Occasionally I find myself trying to code something like:
Code: Select all
(defparameter *functions* `((label1 . ,#'function1) (label2 ,#'other-function)))
(defun function1 (something)
...)
(defun other-function ()
...)
How and where do I initialise the *functions* variable in my file such that it is properly assigned after the file has been loaded?
I'm also still really unclear on the way lisp load and compile and eval-when works. I read the Gigamonkeys Common Lisp Book's chapter about it three times, and I checked the CLHS, but it still isn't making much sense to me

Any advice/tips/tricks on this would be greatly appreciated

Best Regards,
Richard