From jan@swi.psy.uva.nl  Thu May 11 09:52:14 2000
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id JAA01875;
	Thu, 11 May 2000 09:52:14 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id JAA25794;
	Thu, 11 May 2000 09:52:27 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: Paul Sephton <paul@inet.co.za>, prolog@swi.psy.uva.nl
Subject: Re: String Representation
Date: Thu, 11 May 2000 09:49:37 +0200
X-Mailer: KMail [version 1.0.28]
Content-Type: text/plain
References: <Pine.LNX.3.91.1000511004849.17382B-100000@pdev.inet.co.za>
In-Reply-To: <Pine.LNX.3.91.1000511004849.17382B-100000@pdev.inet.co.za>
MIME-Version: 1.0
Message-Id: <00051109522700.25756@gollem>
Content-Transfer-Encoding: 8bit

On Thu, 11 May 2000, Paul Sephton wrote:
>Here's a nice short one-
>
>How do I store a string (not a list of character codes) in a .pl source 
>file in such a way that consult/1 reads it as a string?

:- set_prolog_flag(double_quotes, string).

Formerly known (and still working)

:- style_check(+string).

In general, I would not use strings very often these days.  SWI-Prolog
has no limitations on length nor content for atoms and they are subject
to garbage collection.

	Regards --- Jan

