Regions can be put inside rooms, although this is surely meant to be illegal.
Unfortunately this doesn't let "X is in R and R is in X" be true using the in/regionally-in ambiguity, since the "region is in room" test is compiled to an I6 regionally-in test with the room as the region. This miraculously does not crash at runtime, but does give the "wrong" answer, as illustrated below.
Steps to reproduce :
Foo is a room.
Zog is a region. Zog is in Foo. Foo is in Zog.
When play begins:
repeat with obj running through objects in Foo:
say "[obj] is in Foo.";
say "Zog is in Foo: [whether or not Zog is in Foo]".
Reported by : dfremont
Description :
Regions can be put inside rooms, although this is surely meant to be illegal.
Unfortunately this doesn't let "X is in R and R is in X" be true using the in/regionally-in ambiguity, since the "region is in room" test is compiled to an I6 regionally-in test with the room as the region. This miraculously does not crash at runtime, but does give the "wrong" answer, as illustrated below.
Steps to reproduce :
Additional information :
imported from: [Mantis 1597] Regions can be put in rooms