Skip to content

Commit

Permalink
no set! overwrites on persistent symbol tables
Browse files Browse the repository at this point in the history
  • Loading branch information
quasarbright committed Aug 22, 2024
1 parent 197b8b3 commit 7a8ae1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions private/ee-lib/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@
(check who mutable-symbol-table?
t)

(when (and allow-overwrite? (persistent-free-id-table? (mutable-symbol-table-id-table t)))
(error 'symbol-table-set! "cannot allow overwrite on persistent symbol table"))

(unless allow-overwrite?
(check-symbol-table-new-id who t id))

Expand Down

0 comments on commit 7a8ae1a

Please sign in to comment.