next up previous index
Next: Explicit Conversion Up: Using Tcl/Tk from Previous: Calling Prolog from

Implicit Data Conversion

The implicit conversion between Prolog and Tcl/Tk data is performed in the tcl/3   predicate (Prolog variables are converted to Tcl strings and the resulting Tcl value is converted to Prolog), and by the Tcl command prolog (goal arguments are converted to Prolog and values of Prolog variables are converted to Tcl). (On the other hand, the command call_prolog   does not convert Tcl to Prolog, its argument is parsed as a Prolog text.) The implicit conversion is quite intuitive, however there are several subtle incompatibilities caused by the different philosophy of the two languages:    



next up previous index
Next: Explicit Conversion Up: Using Tcl/Tk from Previous: Calling Prolog from



Micha Meier
Tue Jul 2 09:49:39 MET DST 1996