Can an inner function B, which is inside function A, access variables of A? I searched on google, but found little information about this
about inner function
Re: about inner function
Try the following in a CL implementation.
Code: Select all
(defun test (x)
(let ((a 2))
(flet ((f (y) (+ a y x)))
(f x))))