summaryrefslogtreecommitdiff
path: root/prolog/lexer.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2014-12-11 12:28:02 +0100
committerAleš Smodiš <aless@guru.si>2015-08-11 14:26:00 +0200
commit34ba119fc56404f6d7e3b010602f752438372347 (patch)
tree4a0d78bac1c34a5892d5665030b37b53b1ef05da /prolog/lexer.py
parentbc177e287136888b388a4c61cdd0c413c7b9831d (diff)
Use abolish/1 instead of erase/1 to remove clauses
Using erase/1 keeps the dynamic property for all defined predicates in the testing module. This overrides the clauses in solution modules. For example, if the user defines conc/3 in the solution for the dup/2 problem, the correct conc/3 would not get used even after unloading all user's clauses. This commit also plugs a couple of memory leaks by opening (and later discarding) a new Prolog frame in functions test, load_solution and mark_solved.
Diffstat (limited to 'prolog/lexer.py')
0 files changed, 0 insertions, 0 deletions