curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1957] [Mantis 1993] "There is a dog called Wuggums on the table" doesn't create Wuggums. #127

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : bv

Description :

Running the source text below results in "You can see a table here." with no trace of poor Wuggums.

Replacing the last line with "A dog called Wuggums is on the table." gives the correct result: "You can see a table (on which is Wuggums) here."

Replacing the last line with "There is a dog on the table." also works correctly: "You can see a table (on which is a dog) here."

Steps to reproduce :

"Untitled" by bv

A dog is a kind of animal.
The atrium is a room.

A table is in the atrium.
There is a dog called Wuggums on the table.

Additional information :

imported from: [Mantis 1993] "There is a dog called Wuggums on the table" doesn't create Wuggums.
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-11T00:49:20+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

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

Comment by zarf :
The example code creates an offstage dog called "Wuggums on the table". This may be the intended outcome – it's a valid parsing, at least.

curiousdannii-testing commented 2 years ago

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

Comment by mattweiner :
It seems to me that that's in accord with the way the documentation describes the behavior of "called." From WwI §3.2:

(begin quote)
It is best to use "called" in the simplest way possible, and in particular, best not to use "called" twice in the same sentence. Consider:

The kitchen cabinet contains a container called a mixing bowl and a portable supporter called a platter.

It is unlikely that anyone would want to name something "a mixing bowl and a portable supporter called a platter", but not impossible, and Inform tends not to be a good judge of what is likely.
(end quote)

Which makes it sound as though the expected behavior is that everything after "called" becomes part of the name as long as there's a valid verb. If the source code were parsed the other way, there wouldn't be a way to created an offstage dog called "Wuggums on the table," should we want to.

curiousdannii-testing commented 2 years ago

61eedb62875fc10070240916:

Working as intended; see comments.