:- module(_,_).
/* Conversion between strings and atoms

Try:
?- name(hello,S).
?- name(A,[104,101,108,108,111]).
?- name(A,"hello").
?- set_prolog_flag(write_strings,on).
?- name(hello,S).

Ambiguity when converting strings which represent numbers:

Try: 
?- X='1', atom(X), name(X,S), name(Y,S), number(Y).

(Succeeds! Note that we start with the atom '1' and we 
 end up with the number 1.)

Thus, the ISO standard provides also the non-ambiguous:

Try:
?- atom_codes('1', L).
?- atom_codes(1, L).
?- number_codes('1', L).
?- number_codes(1, L).
?- number_codes(X, "1").
?- atom_codes(X, "1").

*/
