users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie trouble with ebg from the CMU AI archive


From: Vic Bancroft
Subject: Re: Newbie trouble with ebg from the CMU AI archive
Date: Tue, 30 Jul 2002 09:37:01 -0400 (EDT)

The kill/2 predicate is an interface to the c unix function.  One can use it to
send a signal to a process.  

The simple workaround is not to use kill/2 in the example.  Perhaps you could
search for an replace all occurances of 'kill' with the somewhat less dangerous
'squirt' in ebg_1.pl.  The semantics of the example are still coherent when
translated to water pistols.

Another approach is to construct a logical sandbox of sorts, so the namespace of
the user's predicates do not overlap with the builtin namespace.  Often the
notion of modules can be used to address this.  Is there a draft ISO standard
for modules yet . ? .

The implementation of modules in sicstus seems to work quite nicely.  This is
particularly convenient when doing foreign c wrappers).  Perhaps it can be used
as a model in gprolog . . .

more,
l8r,

------------------------------------------------------------------- 
Victor Bancroft, Principal Engineer, Zvolve Systems [v]770.551.4505 
1050 Crown Pointe Pkwy, Suite 300, Atlanta GA 30338 [f]770.551.4509 
Fellow, Artificial Intelligence Center              [v]706.542-0358 
Athens, Georgia  30602, U.S.A           http://ai.uga.edu/~bancroft 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]