tsnl / snail-scheme

My Scheme interpreter and compiler.
1 stars 0 forks source link

Continuations broken by commit 111cb248890f39460b1cf32c35513a58de6b8a90 #7

Closed tsnl closed 2 years ago

tsnl commented 2 years ago

111cb248890f39460b1cf32c35513a58de6b8a90

tsnl commented 2 years ago

Generated bytecode is identical, so regression must be in VM.

tsnl commented 2 years ago

Stepped through execution. All registers look right until the return just after 'nuate', which pops the wrong 'next' expression.

tsnl commented 2 years ago

Turns out, continuations work fine, I misunderstood them again. I should test against Chez Scheme more often.