>To my untrained eye (I know no TADS), this code looks somewhat dodgy.
>Won't the call to o.moveInto(self) modify the list
>self.location.contents, so that the code risks missing some items?
Keen eye. You're right. I ought to have made a copy of the contents list
first (l := self.location.contents), and then iterated over that. Also,
the isIn test isn't really necessary as long as the rest of the code
properly maintains the contents lists.
Damned if I can ever get a posted code example right... :)
Dave Baggett
__
dmb@ai.mit.edu ADVENTIONS: Kuul text adventures! Email for a catalog.
"Mr. Price: Please don't try to make things nice! The wrong notes are *right*."
--- Charles Ives (note to copyist on the autograph score of The Fourth of July)