Re: Tads problem again


30 Jun 95 21:40:57

aaron@latrobe.edu.au (Aaron Hardy) wrote:

> The compiler tells me I excluded a equal sign, in this area of code...
>
> bookcase: fixeditem
> sdesc = "bookcase"
> ldesc = "A monstrous bookcase, leans precariously against the wall. A
> collection of books, covered in dust, sits on the shelves.
> noun = 'book' 'case' 'bookcase'
> adjective = 'monstrous' 'dusty'
> verDoPush(actor) = {}
> doPush(actor) =
> {
> if (bookcase.ispushed)
> "The bookcase swings outward, covering the passage.";

I'm not at all familiar with the syntax of TADS, but a *possible*
explanation would be that the 'closing' quote for the string
assigned to 'ldesc' seems to be the first one on the last quoted
line, ie the code looks something like

ldesc = "A monstrous ...
...
if (bookcase.ispushed)"
The bookcase swings outward, ...

which, I suppose, could be interpreted as if you need an equal sign
when assigning a value to the identifier 'The'.

If this theory is completely out to lunch, I apologize for the noise.

Torbj|rn Andersson