in reply to Re^3: YASWI "Prolog System Error: Thread 1"
in thread YASWI "Prolog System Error: Thread 1"

Hi Salva,

It's true I am.

Can I just clarify something? Whan I *first* call prolog, the prolog engine is loaded in a second thread, so I don't need to consult the file again. Once i_prolog.pl is loaded, it stays loaded and the engine stays running until the application ends? Is that right? I had been assuming that once I exited the module all the variables cleared themselves, because thgey were out of scope. I get the feeling that this is not true. So the only reason for calling consult @files again is if the files change for any reason, eg if I dynamically alter i_prolog.pl. Have I got that right?

Thanks for your patient and expert help, it's truly invaluable.

Regards

Steve

Replies are listed 'Best First'.
Re^5: YASWI "Prolog System Error: Thread 1"
by salva (Canon) on Jan 21, 2010 at 13:14 UTC
    Once i_prolog.pl is loaded, it stays loaded and the engine stays running until the application ends?

    Yes, that's it. In this regard, Prolog is similar to Perl, once you load a module, the subs/predicates defined there remain defined until you shutdown the program.

      Hi Salva

      Ok thanks, it seems to work perfectly that way.

      Steve