Subject: Please help me with strings

From: [email-masked] (Uwe Lesta)
Date: Mon, 29 Nov 1999 10:09:19 +0100

Hello,

assume that style_check(+string) is true.

If i ask interactive in the toplevel window
        20 ?- string("string").
        Yes
        21 ?-
But this program fails cause "string" is readed as a list of chars.

t_str:-
    style_check(+string),
    string_to_atom(Str, 'string'),
    string(Str),
    string("string"),
    Str == "string".

What must I do that this is true ??

t_str2:-
    string_to_atom(Str, 'string'),
    Str == "string".

If the file is consulted.
-------------------------
--

Regards

Uwe
[email-masked]