Re: SWI
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 08 May 2007 19:07:51 GMT
On 2007-05-08, Duncan Patton <campbell@xxxxxxxxxx> wrote:
On 07 May 2007 18:54:45 GMT
Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx> wrote:
swi :- catch(current_prolog_flag(compiled_at, _), _, fail).
sicstus :- catch(current_prolog_flag(system_type, _), _, fail).
This is what I was looking for, thanks. Next silly question, is
there an easy way to get at the processid? I had to write this
in C for XSB once upon a time.. Gprolog too, I think, but it may
have been in and I didn't use it.
In SWI-Prolog you get this using
current_prolog_flag(pid, P).
Its not standardized though, so I doubt there is any other Prolog
system in which this works.
--- Jan
.
- References:
- Prev by Date: Re: SWI
- Next by Date: Re: Business Rules in Prolog
- Previous by thread: Re: SWI
- Next by thread: XPCE prolog terminal
- Index(es):