Re: Inform: objectloop


20 Nov 1995 11:56:32 GMT

Adrian Preston <te_s343@kingston.ac.uk> wrote:
> objectloop ( i in player ) move i to room_name;

This is shorthand for

i = child(player);
while (i ~= nothing) { move i to room_name; i = sibling(i); }

a little bit of thought will show you why this doesn't do what you want.
One solution that works is:

while (child(player) ~= 0) move child(player) to room_name;

-- 
Gareth Rees