Skip to content

Commit 2cb1cee

Browse files
committed
feat: thread unsafe
1 parent 92dc358 commit 2cb1cee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/Threading.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
cargo build --features="repl" --release
2626
27-
- name: Thread Safe
27+
- name: Thread Safe (still unsafe)
2828
run: |
2929
./target/release/3body -c '
3030
给 cx 以 程心();

interpreter/src/evaluator/builtins.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn three_body_threading(_: Vec<Object>) -> Object {
369369
Object::Function(params, stmts, env ) => {
370370
let mut ev = Evaluator {
371371
env: {
372-
let mut scoped_env = Env::new_with_outer(Rc::clone(&env));
372+
let mut scoped_env = Env::new_with_outer(Rc::clone(&env)); // still thread unsafe
373373
let list = params.iter().zip({
374374
match &args[1] {
375375
Object::Array(arr) => arr,

0 commit comments

Comments
 (0)