Merge commit 'c30054a5338027983dbc5cc463fd96eb0f1eeffa'

This commit is contained in:
Benjamin Vedder 2022-10-10 19:35:30 +02:00
commit 41b1d41998
4 changed files with 20 additions and 1 deletions

View File

@ -2002,6 +2002,7 @@ static void cont_application_args(eval_context_t *ctx) {
// no arguments // no arguments
sptr[1] = count; sptr[1] = count;
lbm_stack_drop(&ctx->K, 1); lbm_stack_drop(&ctx->K, 1);
ctx->curr_env = env;
cont_application(ctx); cont_application(ctx);
} else if (lbm_is_cons(rest)) { } else if (lbm_is_cons(rest)) {
sptr[1] = env; sptr[1] = env;

View File

@ -37,7 +37,6 @@ lbm_value gen_cons(lbm_value a, lbm_value b) {
lbm_cons(b, ENC_SYM_NIL))); lbm_cons(b, ENC_SYM_NIL)));
} }
lbm_value append(lbm_value front, lbm_value back) { lbm_value append(lbm_value front, lbm_value back) {
return lbm_cons (ENC_SYM_APPEND, return lbm_cons (ENC_SYM_APPEND,
lbm_cons(front, lbm_cons(front,

View File

@ -0,0 +1,10 @@
(defun q () 10)
(define b (let ((a 2))
(progn
(setvar 'a (q))
a)))
(= b 10)

View File

@ -0,0 +1,9 @@
(define q 10)
(define b (let ((a 2))
(progn
(setvar 'a q)
a)))
(= b 10)