For Programmers: Free Programming Magazines  


Home > Archive > Prolog > July 2006 > bb_put and bb_get









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author bb_put and bb_get
Mika

2006-07-19, 8:01 am

I am translate a system written in Sicstus Prolog in Swi Prolog and am
having many problems. The problem that I have now is translate
blackboard predicates 'bb_put' and 'bb_get'. How I can realize them in
Swi Prolog?

Bart Demoen

2006-07-19, 8:01 am

Mika wrote:
> I am translate a system written in Sicstus Prolog in Swi Prolog and am
> having many problems. The problem that I have now is translate
> blackboard predicates 'bb_put' and 'bb_get'. How I can realize them in
> Swi Prolog?
>


look for nb_setval and nb_getval
if the terms you are putting/getting contain variables, be aware of a difference
in semantics when getting: you might have to use extra copy_term, but maybe you
will like the SWI semantics better :-)

Cheers

Bart Demoen
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com