Re: [Inform] Difference between "


26 Nov 1995 23:41:01 GMT

Sam Hulick (shulick@kiwi.ucs.indiana.edu) wrote:
: You know, I'll bet the " vs. ' is one of the toughest things to grasp in
: Inform. What is the real difference between:
: ...
: adjective "red" "big",
: and
: ...
: adjective 'red' 'big',

The double quotes mean it won't work. Single quotes mean it will.

: I do know that dictionary words suck because you can't print them.

Can't you? I thought "print_addr i;" where i contains a dictionary word
would work, or something like that. That's used somewhere in the library
to print verbs.

: What's the purpose, then? Why not just have everything work like:

: life [;
: Ask: if (second == "train")
: ....

Because second would need to contain the address of a string "train", and
it might be an equivalent string but stored at a different address, in
which case it would not work.