Skip to content

Commit

Permalink
bind missing module atom in retract/1 (mthom#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Nov 26, 2023
1 parent f1458b7 commit b8ef367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/builtins.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,9 @@
Body = true,
retract_module_clause(Head, Body, Module)
; Clause = (Head :- Body) ->
( var(Module) -> Module = user
; true
),
retract_module_clause(Head, Body, Module)
).

Expand Down

0 comments on commit b8ef367

Please sign in to comment.