curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1561] [Mantis 1597] Regions can be put in rooms #523

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

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 :

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]".

Additional information :

imported from: [Mantis 1597] Regions can be put in rooms
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:59:23+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by graham :
Fixed. It is of course illegal to put a region inside anything other than another region.