using grips withing gprolog

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

using grips withing gprolog

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

  how ?
     thanks.
     ...
     a


_______________________________________________
Users-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/users-prolog
Reply | Threaded
Open this post in threaded view
|

Re: using grips withing gprolog

Paulo Moura-2

On 01/02/2014, at 12:27, Algaba <[hidden email]> 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:[hidden email]>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------





_______________________________________________
Users-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/users-prolog