attila-lendvai / maru

Maru - a tiny self-hosting lisp dialect
http://piumarta.com/software/maru/
Other
189 stars 10 forks source link

closure variable capturing bug #8

Open attila-lendvai opened 4 months ago

attila-lendvai commented 4 months ago

there's a major bug in lambda's capturing the wrong cell. it's present in every version and implementation.

IIRC, eval/closures/bug/1 is a reproducer of that.

i didn't understand well enough how cells are allocated and referenced, so i failed to fix it before i ran out of steam.