1
<HTML><HEAD><TITLE>Answer to Exercise 57</TITLE></HEAD>
2
<BODY BGCOLOR="#FFFFFF">
3
<TABLE><TR><TD Valign="top"><IMG SRC="../icons/exercise.gif" ALT="??"><TD bgcolor="#FAA89B"><B>ANSWER TO EXERCISE 57</B><TR><TD><TD>
8
Object -> "/?%?/ (the artiste formally known as Princess)"
9
with name "princess" "artiste" "formally" "known" "as",
11
[; if (self hasnt general) { print "Princess"; rtrue; }
14
[; Listen: print_ret (name) self, " sings a soft siren song.";
17
[; print_ret (name) self, " is singing softly.";
20
[ x n; if (self hasnt general)
21
{ if (NextWord()=='princess') return 1;
25
if ( x->0 == '/' && x->1 == '?' && x->2 == '%'
26
&& x->3 == '?' && x->4 == '/')
27
{ while (wn<=parse->1 && WordAddress(wn++)<x+5) n++;
33
[; Kiss: give self general; self.life = NULL;
34
"In a fairy-tale transformation, the Princess
35
steps back and astonishes the world by announcing
36
that she will henceforth be known as ~/?%?/~.";
38
has animate proper female;
42
<HR>Back to <A HREF="../section24.html#ex57">the exercise in section 24</A><HR>
43
<SMALL><I>Mechanically translated to HTML from third edition as revised 16 May 1997. Copyright © Graham Nelson 1993, 1994, 1995, 1996, 1997: all rights reserved.</I></SMALL></BODY></HTML>