Newsgroups: rec.arts.int-fiction
Path: gmd.de!nntp.gmd.de!dearn!
 news.belwue.de!news.dfn.de!gs.dfn.de!news.dkrz.de!dscomsa.desy.de!CERN.ch!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!xyplex4-2-2.ucs.indiana.edu!zbir
From: Zachery Bir <zbir@silver.ucs.indiana.edu>
Subject: Help me with this Inform code (i.e. Hunt the bug...)
Message-ID: <Cwr35x.JBA@usenet.ucs.indiana.edu>
X-Xxmessage-Id: <AAAC8366BE011216@xyplex4-2-2.ucs.indiana.edu>
X-Xxdate: Mon, 26 Sep 1994 19:55:50 GMT
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: xyplex4-2-2.ucs.indiana.edu
Organization: Goobers, Freaks, Geeks, and Ass.
X-Newsreader: Nuntius Version 1.2
Date: Mon, 26 Sep 1994 18:53:56 GMT
Lines: 65

Okay, I tried to write a two-way door in my code, and I copied it
straight out of the manual. However, when I compile, it gives me a lot of
errors...

Here's the offending code:

Object Hotel_Hallway_West "West End of Hallway" nothing
	with longdesc "This is the west end of the upstairs hall. There are
doors \
			to the north and south, marked '201' and '202', respectively. The \
			hallway leads east.",
		n_to "That room is registered under someone else's name. They probably \
			aren't associated with your story. You'd better leave it alone.",
		e_to Hotel_Hallway,
		s_to Hotel_Room_Door
	has light;

Object Hotel_Room_Door "hotel room door"
	with name "door" "room" "hotel" "my",
		longdesc "It looks like an ordinary door, wooden with a thick, oak \
			frame. Beneath the handle is a keyhole.",
		with_key Door_Key,
		door_dir
			[;
				if (location==Hotel_Hallway_West)
					return s_to;
				return n_to;
			],
		door_to
			[;
				if (location==Hotel_Hallway_West)
					return Hotel_Room;
				return Hotel_Hallway_West;
			],
		describe
			[;
				if (self has open)
					"^The door is open.";
				if (self hasnt locked)
					"^The door is unlocked but shut.";
				rtrue;
			],
		found_in Hotel_Hallway_West Hotel_Room
	has scenery door openable lockable locked;

Object Hotel_Room "Your Hotel Room"
	with longdesc "A veritable rat-trap, at least it lets you spend your \
			advance elsewhere. It's small, cramped, and it smells of previous \
			notorious visitors. Besides the plain bed here, there is little \
			else of interest.",
		n_to Hotel_Room_Door
	has light;


{Code end}

So what's up with this code? It follows the manual exactly, except for
where I reformatted the if-statements to make it easier to read...

Is the manual wrong? Am I using an outdated library? Someone help me!
Please?

Thanks,

Zac
