mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
strip syntactic closures for unquoted vector literals
This commit is contained in:
parent
9ca33d82f4
commit
421ef0b010
1 changed files with 3 additions and 1 deletions
4
eval.c
4
eval.c
|
@ -1132,8 +1132,10 @@ static sexp analyze (sexp ctx, sexp object, int depth, int defok) {
|
|||
} else if (sexp_nullp(x)) {
|
||||
res = sexp_compile_error(ctx, "empty application in source", x);
|
||||
} else {
|
||||
if (sexp_pointerp(x)) /* accept vectors and other literals directly, */
|
||||
if (sexp_pointerp(x)) { /* accept vectors and other literals directly, */
|
||||
sexp_immutablep(x) = 1; /* but they must be immutable */
|
||||
x = sexp_strip_synclos(ctx , NULL, 1, x);
|
||||
}
|
||||
res = x;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue