-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list is immutable? #2
Comments
and none of
|
The reason is in:
ChickenClisp/source/orelang/Value.d Line 84 in 815c874
ChickenClisp/source/orelang/Value.d Line 240 in 815c874
So int / number ... all other types array (except string i.e immutable(char)) ... is always copied on modification, I don't think it's Lisp list / array semantics. This is a bug, actually the opposite is true: only immutable string (in D's semantics) should be always copied on modification. |
Also what's the good of this ChickenClisp/source/orelang/Value.d Line 368 in 815c874
|
e.g.
x
is unchanged.while in Lisp (SBCL), list is mutable:
x
is mutable.The text was updated successfully, but these errors were encountered: