Loopus
Loopus copied to clipboard
Either aref or setf is not working properly
I tried snippets in the test file. When I tried assigning values to the elements in the array using setf and aref, the function always returns prior element values. The following snippet returns an array of zeros.
(let* ((dim 5)
(m-1 (make-array 10)))
(progn
(loopus:for (i 0 dim)
(setf (aref m-1 i j)
(random 10.0)))
(print m-1)))
Loopus is currently work in progress, and there are some issues we have yet to resolve. I will update this issue once we have fixed it, but until then you really shouldn't rely on Loopus.
Thank you for your reply. I was playing around with Loopus and found that the test example wasn't working. So, I filed an issue. Thank you, once again.