Re: using grips withing gprolog

Paulo Moura <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
On 01/02/2014, at 12:27, Algaba <[email protected]> wrote:

> has anyone managed to get Grips (http://www.j-paine.org/dobbs/grips.html      ) working ?

Out of curiosity, I took a look to the Grips source code and used Logtalk ability to compile Prolog module code to learn about possible portability issues. The code uses some SWI-Prolog features, which makes porting difficult. It uses a back quote as an operator, which is problematic. As an example, the code only compiles with SWI-Prolog V7 using the --traditional command-line flag. It declares operators in the pseudo-module "user" that SWI-Prolog makes available through a kind of inheritance mechanism to the module that contains the op/3 directives. A bigger issue is the use of module_transparent/1 directives, which cannot be simply replaced by more meta_predicate/1 directives. Thus, porting is not trivial.

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:[email protected]>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.