Hello.
I'm programming in Prolog (SWI-Prolog), and I want to clear all the predicates of the database. Why? The reason is very complicated. I only want to do that. If it's not possible, OK, but I want to try.
* Closing the session is not what I need, because I want to do other things after clearing the database (for instance, consult another program), and I want to do this automatically: I can't say the user to do that.
* abolish and retract won't work. I have to know all the predicates in my database to use them (and, even if I know them, I'd have to write hundreds of "abolish"), so I want a predicate to erase the database.
Thank you very much.
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









