The working one:
Code: Select all
(loop for i from 0 to 20 do (setf *pool* (add_rand_circuit *needs_pool* *pool*)))
The non-working one:
Code: Select all
(defun meh (pool) (loop for i from 0 to 20 do (setf pool (add_rand_circuit *needs_pool* pool))))
(setf *pool* (meh *pool*))
So, without going into detail about what add_rand_circuit does, can somebody tell me if there is some sort of, I dunno, size limit or other significant difference between a global variable and a local variable? The same thing happens if I replace "pool" in the "meh" function with a let variable.
Thanks a mil,
Siggy