Re: 2 TADS questions


04 Jun 1995 15:01:49 GMT

David Baggett <dmb@rice-chex.ai.mit.edu> wrote:
>
> for (i := 1; i <= length(self.location.contents); i++) {
> o := self.location.contents[i];
> if (not o.donttake and not o.isIn(self))
> o.moveInto(self);
> }

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?

--
Gareth Rees