curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1649] [Mantis 1685] Property values are ignored in object definitions of the form "{existing object} {relation} {kind} with {property} {value}" #435

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : jmcgrew

Description :

The code sample below prints "Value: 0" instead of the expected "Value: 5".

When an object is defined using syntax such as "Home contains a bill with dollar value 5", or "Tex wears a hat with size 10 and color brown", the property values in the definition are silently ignored.

If the definition is slightly reworded (see line marked with ***), then the property values are set as expected.

Steps to reproduce :

Home is a room.

A bill is a kind of thing.
A bill has a number called dollar value.

Home contains a bill with dollar value 5.
[Contained by Home is a bill with dollar value 5. [*** works]]

When play begins:
    let B be a random bill;
    say "Value: [dollar value of B]."

Additional information :

imported from: [Mantis 1685] Property values are ignored in object definitions of the form "{existing object} {relation} {kind} with {property} {value}"
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:59:58+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

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

Comment by graham :
Fixed.

(Though I quite liked the Yoda-like sentence "Contained by Home is a bill with dollar value 5.")