prolog single quote (') unification -


i'm trying unify variable x '*' (including quote marks, total of 3-symbol string) i'm doing simple x='*'., results in x having value *. if go x=''*''., result x=''*''. i'm confused, how can achieve '*'?

if want string, should use double-quotes:

x="'*'". 

if want make symbol, can use

atom_codes( x, "'*'" ). 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -