Newsgroups: rec.arts.int-fiction
Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!trane.uninett.no!news.eunet.no!nuug!dkuug!uts!news.daimi.aau.dk!aau!joedal
From: joedal@dfi.aau.dk (Lars Joedal)
Subject: Re: Extremely odd TADS bug
References: <2iv1fa$rhu@bigboote.WPI.EDU>
Sender: usenet@aau.dk
Organization: Aarhus University
Date: Tue, 8 Feb 1994 08:24:19 GMT
Message-ID: <joedal.760695859@dfi.aau.dk>
Lines: 30

avif@cs.WPI.EDU (Avram Finkel) writes:

[...]
>               m := "January";
[...]

The problem is the use of double-quoted strings. These strings display
their contents when they are evaluated (and don't even return a value).
Use single-quoted strings instead:

		m := 'January';

Single-quoted strings behave as one would normally expect text strings
to behave.

So: "It's not a bug (in TADS), it's a feature!" :-)

Seriously, these double-quoted strings are very useful. Adventure games
display a lot of text and these strings make that very easy. One just
has to know when *not* to use them.

/Lars

+------------------------------------------------------------------------+
| Lars J|dal                | Q: What's the difference between a quantum |
| email: joedal@dfi.aau.dk  |    mechanic and an auto mechanic?          |
| Physics student at the    | A: A quantum mechanic can get his car into |
| University of Aarhus      |    the garage without opening the door.    |
| Denmark                   |                    -- David Kra            |
+------------------------------------------------------------------------+
