Re: Persistent state
Daniel Diaz <[email protected]>
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
you should use Start_Prolog and Stop_Prolog only once. So your code
should look like:
Start_Prolog
...
...
facts
...
...
facts
I need to use the former facts here
...
Stop_Prolog
[email protected] wrote:
> Hi,
>
> I am working in a project where I need to use Start_Prolog and Stop_Prolog
> in different places. How could I save facts before calling Stop_prolog to
> use them later in another prolog session, this means, I use Start_Prolog,
> then I do different things, and finally I use Stop_Prolog
>
>
> Start_Prolog
> ...
> ...
> facts
> ...
>
> Stop_Prolog
>
>
>
> Start_Prolog
> ...
> ...
> I need to use the former facts here
> ...
>
> Stop_Prolog
>
>
> Cheers,
>
> Carlos.
>
>
>
>
> _______________________________________________
> Users-prolog mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/users-prolog
>
--
===============================================
Daniel Diaz
University of Paris 1 INRIA Rocquencourt
75013 Paris FRANCE 78153 Le Chesnay FRANCE
web: http://pauillac.inria.fr/~diaz
email: [email protected]
--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.