Loopus icon indicating copy to clipboard operation
Loopus copied to clipboard

Either aref or setf is not working properly

Open kar7hik opened this issue 3 years ago • 2 comments

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)))

kar7hik avatar Aug 12 '22 12:08 kar7hik

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.

marcoheisig avatar Sep 07 '22 12:09 marcoheisig

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.

kar7hik avatar Sep 07 '22 13:09 kar7hik