MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: [newbie] Programmer Tutorial Question
D. Jason Nolan writes:
> #110:do_the_work not compiled because:
> Line 3: syntax error
>
> 1: if (this.wound)
> 2: if ($object_utils:isa(this.location,$room)
> __3_ this.location:announce_all(this.name," ",this:continue_msg());
> ^^4^ this.wound = this.wound - 1;
You're missing a closing parenthesis at the end of line 2; the compiler accepts
a line-break anywhere that a space could appear (except inside a string), so
it's gotten all the way to the beginning of line 3 before it can tell that
you've forgotten it.
Pavel
References:
Home |
Subject Index |
Thread Index