[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: scoping...
- From: firstname.lastname@example.org
- Date: Tue, 29 Jun 93 16:24:06 CDT
I know I'm an idiot for not understanding the nuances of scoping et al,
I have something like:
(when (find-menu "Foobar") (menu-deinstall (find-menu "Foobar")))
(defparameter foobar (make-instance 'menu :menu-title "Foobar"))
(apply #'add-menu-items foobar
(let ((activities #(A B C))
;(declare (<WHAT GOES HERE?!!!> activity)
(dotimes (i (length activities) (nreverse items))
(setq activity (aref activities i))
:menu-item-title (string activity)
This results in a list of menu-items, each with the correct title, but the
functions all affect the LAST activity, rather than the ith. ie, All of
the menu-items print C.
I understand that the variable activity is incorrectly scoped, but what do
I do to fix it?
-- "TANSTAAFL" Rich email@example.com