about inner function
Posted: Fri May 11, 2012 1:29 am
Can an inner function B, which is inside function A, access variables of A? I searched on google, but found little information about this




Discuss and learn Lisp programming of all dialects. NOTICE: Site locked. No new users or posts.
http://www.lispforum.com/
Code: Select all
(defun test (x)
(let ((a 2))
(flet ((f (y) (+ a y x)))
(f x))))