[I7-1649] [Mantis 1685] Property values are ignored in object definitions of the form "{existing object} {relation} {kind} with {property} {value}" #435
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]."
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 :
Additional information :
imported from: [Mantis 1685] Property values are ignored in object definitions of the form "{existing object} {relation} {kind} with {property} {value}"