Skip to content

Commit

Permalink
feat: thread unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Nov 4, 2024
1 parent 92dc358 commit 2cb1cee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Threading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
cargo build --features="repl" --release
- name: Thread Safe
- name: Thread Safe (still unsafe)
run: |
./target/release/3body -c '
给 cx 以 程心();
Expand Down
2 changes: 1 addition & 1 deletion interpreter/src/evaluator/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ fn three_body_threading(_: Vec<Object>) -> Object {
Object::Function(params, stmts, env ) => {
let mut ev = Evaluator {
env: {
let mut scoped_env = Env::new_with_outer(Rc::clone(&env));
let mut scoped_env = Env::new_with_outer(Rc::clone(&env)); // still thread unsafe
let list = params.iter().zip({
match &args[1] {
Object::Array(arr) => arr,
Expand Down

0 comments on commit 2cb1cee

Please sign in to comment.