Re: running once at true startup

Wouter Beek <[email protected]> Wed, 9 Apr 2014 16:50:22 +0200
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAE1un7P5XDSw=08B9yg5-_i-7n+pvS3sK2S89jxEObri1CAVQg@mail.gmail.com>
Hi Jan, Anne,

:- initialization(run_the_game, once).
>
> where `once` would mean the same as `after_load`, but in addition
> does not execute the directive on reloads.  Would that make sense?
>
To me this would make sense. I have had the same experience with modifying
a file that start are logging process. Every time I edit the module that
start the logging, running `make` restarts the logging process.

Cheers!,
Wouter.
-------------- next part --------------
HTML attachment scrubbed and removed