curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1505] [Mantis 1541] Rulebooks on general types of value ignore kind restrictions #579

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : dfremont

Description :

In the example below, the rule fires despite the Swedish language not being a stored action - the interpretation as a stored action then causes a memory access out of range error in Glulxe. I'm not sure if rulebooks based on classes of values like "sayable values" (enumerated values work too) are supposed to be allowed, but if so they presumably should have the same kind-distinguishing behavior of object-based rulebooks.

Steps to reproduce :

Foo is a room.
Zog is a sayable value based rulebook.
A zog rule for a stored action (called obj): say "I, [obj], am a stored action!".
When play begins: follow zog for the Swedish language.

Additional information :

imported from: [Mantis 1541] Rulebooks on general types of value ignore kind restrictions
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:58:58+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

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

Comment by graham :
Such kinds are too vague to be safe for rulebooks (compare activities, where there was already such a prohibition). Problem message added.