Arc Forumnew | comments | leaders | submitlogin
2 points by zck 631 days ago | link | parent

Oh, here's what's going on. Alist is already a function (https://arclanguage.github.io/ref/predicates.html#alist). So redefining it makes code using it fail.

If you restart Arc, and rename the variable to something else (e.g., a-list), you won't see this.



1 point by akkartik 631 days ago | link

Ah, thanks for spotting that so quickly. Arc warns when we replace a function with another. Perhaps it should also do so when we replace a function with anything else?

Edit 28 minutes later: this is now done.

  arc> (= alist t)
  *** redefining alist
  t
https://github.com/arclanguage/anarki/commit/b7d17d8c13

Let me know if y'all run into any problems. Unit tests pass, but we can always add more..

-----

2 points by jsgrahamus 631 days ago | link

Will anarki run on Windows?

-----

1 point by akkartik 631 days ago | link

I did see it running momentarily on Windows a few weeks ago: http://arclanguage.org/item?id=19458. It might have a few issues, but if you report them I'll try to fix them.

-----

2 points by jsgrahamus 631 days ago | link

Thanks, zck!

-----

1 point by zck 630 days ago | link

No problem! Glad to help.

-----