kanaka / mal

mal - Make a Lisp
Other
10.1k stars 2.57k forks source link

New test for closures #675

Closed asarhaddon closed 2 months ago

asarhaddon commented 2 months ago

I have found this in an old mess of experimentations with ada.2. Seems simple and worth testing.

kanaka commented 2 months ago

Yes, that's a really good test. It also broke nim which is unexpected.

kanaka commented 2 months ago

I fixed nim (4c7b1d6af04931e478e848f56c843c095aa018a6). It was just step3 and 4 that had the problem which was what I guessed given that later env handling and self-hosting worked fine.

asarhaddon commented 2 months ago

I have fixed ada.2 (disabling a misguided optimization attempt by a younger me :-1: ), added trivial changes to nim (that I was investigating too), and added a similar but more simple test. The second test triggers an input/output error in.... zig.

kanaka commented 2 months ago

I rebased the branch. There are new failures in latex3 and vbs but those don't seem related to this so I have gone ahead and merged. I filed issues for the unrelated problems:

kanaka commented 2 months ago

Oh, I never actually merged it. Merged now.