??ANSWER TO EXERCISE 47

Put the following definition between inclusion of "Parser'' and "Verblib'':

Object LibraryMessages
  with before
       [;  Prompt: if (turns==1)
                   print "What should you, the detective, do now?^>";
               else
                   print "What next?^>";
               rtrue;
       ];

Back to the exercise in section 21
Mechanically translated to HTML from third edition as revised 16 May 1997. Copyright © Graham Nelson 1993, 1994, 1995, 1996, 1997: all rights reserved.