Using Numbers as Names in INFORM


20 Oct 1995 12:59:37 GMT

I shouldn't be so lazy as to post this question, I suppose, but this group
has several readers who are much more subtle coders than I.

Please refer to exercise 21 in the INFORM Designer's Manual. I want to
extend the basic idea here so that the player can enter something like:

>move slide 1 to 23

or:

>move 3rd slide to 12

(instead of having to write out the ordinal numbers.) I tried simply
extending the parsing routine, ASlide, to test for those cases, but
of course I get the syntax error:

Dictionary words must begin with a letter of the alphabet.

Is there a way around this? Some jiggery-pokery with the ParseNumber
routine or something?

=======================================================
Michael Baum
dba: michael.baum@nist.gov DEATH BEFORE UNIX!
USGOV/DOC/NIST/PBA
=======================================================