Re: Difference between " and '


14 Nov 1995 09:06:08 GMT

Joe Mason <joe.mason@tabb.com> wrote:
> Can somebody tell me what the difference is between "word" and 'word'
> in Inform? The manual says that "word" refers to a simple string,
> while 'word' refers to a dictionary entry - presumably, a word which
> the parser will understand. So how come the name property uses
> "word"?

That the name property uses double quotes is a historical accident. In
Inform 1, the `name' property used double quotes, and you wrote #w$word
or #n$word instead of 'word' (according to whether 'word' was already in
the dictionary or not).

So it's wrong, but it's too late to change.

-- 
Gareth Rees