Re: Manipulating Strings in Sicstus Prolog



On 09 Jun 2006 07:31:42 GMT, Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
wrote:
SWI-Prolog provides strings as a primitive datatype. Actually the result
of adopting them from an early draft of the ISO standard. Strings never
made it to the standard.
For representing text we have what is normally called a `string' in
Prolog: a list of character codes (one-letter atoms is an alternative
provided by ISO, generally causing more confusion that providing anything
useful).

The standard (I have only a copy of a draft) cites also backquoted
strings as valid tokens. Do backquoted strings have no other practical
usage than to provide a kind of "shorthand notification" for Prolog
text?

Andreas
-------
Et ceterum censeo, TV esse delendam.
.



Relevant Pages

  • Re: Manipulating Strings in Sicstus Prolog
    ... of adopting them from an early draft of the ISO standard. ... Prolog: a list of character codes (one-letter atoms is an alternative ... strings as valid tokens. ...
    (comp.lang.prolog)
  • Re: A good compiler
    ... .pdf format). ... Which ISO standard is that one? ... N869 is the last draft of the 1999 standard. ...
    (comp.lang.c)
  • Re: newbie question about string initialization
    ... This is almost certainly a variation in compiler "interpretation" of the ... standard, I'm not sure if it can be classified as a "bug" but certainly a ... functions that are "safe" versions that do a character by character check ... The design of F77 strings is extremely poor in a number of significant areas ...
    (comp.lang.fortran)
  • Re: Infinite Loops and Explicit Exits
    ... >> variable length strings in a record. ... > certainly untrue for a number of contemporary file systems, ... > The C standard does not cover data organization in files. ... There are plenty of these language bake-off contests on the ...
    (comp.lang.cobol)
  • Re: Music question
    ... " Nearly all slack key requires retuning the guitar ... strings from standard ", ... some slack-key tunings form C6, ...
    (soc.culture.hawaii)