For Programmers: Free Programming Magazines  


Home > Archive > Prolog > August 2005 > variable representation (newbie question probably)









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 variable representation (newbie question probably)
Flashlight

2005-08-03, 5:03 pm

Hi,

I'm reading terms from a file, checking that they are valid, then displaying
them in a browser as the result of a cgi call (using SWI's clib cgi
library). Here is the problem I am having. I would like the output to use
the same external variable representations. So right now I have things like
"connected(X,Y) :- connected(X,Y,[X])." looking like "connected(_G72,
_G73):-connected(_G72, _G73, [_G72])", when I'd like it to keep looking like
"connected(X,Y) :- connected(X,Y,[X]).". I am just using write(Term), right
now.

Thanks for your thoughts!!! :)


Sponsored Links







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

Copyright 2008 codecomments.com