Re: [Inform] Difference between "


06 Dec 1995 18:29:02 GMT

"Sam Hulick" <shulick@kiwi.ucs.indiana.edu> wrote:
> This code segment fails:
>
> n = NextWord();
> print (address) n, "^";
>
> Why?

If the next word is not in the dictionary, or there are no more words in
the player's input, then `NextWord' returns 0. Presumably this is the
problem, although it is hard to tell from such a vague request.

What is it you want to do? If you want to print words from the player's
input, regardless of whether they're in the dictionary or not, look at
the `WordAddress' and `WordLength' functions, and the `@print_table'
opcode.

-- 
Gareth Rees