Skip to content

double_quotes Prolog flag incorrect and cannot be modified #106

@UWN

Description

@UWN
?- current_prolog_flag(double_quotes, V).

V = chars ? ;

no
?- writeq("a").
[97] % unexpected - expected [a]
yes

?- set_prolog_flag(double_quotes, codes).

no, unexpected.

The flag double_quotes was introduced by ISO as a changeable flag in 7.11.2.5 meaning (6.3.7):

If the Prolog flag double_quotes has a value chars, a
double quoted list token dql containing L double
quoted characters is a list l with L elements, where
the N-th element of the list is the one-char atom whose
name is the N-th double quoted character of dql.
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions