I've encountered i problem I've never seen before. I have function that has variables declared at the start. One of the values is a list. The function works fine the first time i call it. But when i call it a second time the list variable retains the value it ended up with from the previous function call
The function basically makes a new list with push. But the second time i call it, it simply pushes into the list that was created from the previous function call.
I mean i setf the value of the list variable at the start of the function so really it should be reset whenever the function is called no? When i enter the defun code defining the function, and call the function again, i get the proper output but if i don't enter the defun code again before the next function call, i get the above problem. Any ideas?
BIOS
The function basically makes a new list with push. But the second time i call it, it simply pushes into the list that was created from the previous function call.
I mean i setf the value of the list variable at the start of the function so really it should be reset whenever the function is called no? When i enter the defun code defining the function, and call the function again, i get the proper output but if i don't enter the defun code again before the next function call, i get the above problem. Any ideas?
BIOS