curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-2023] [Mantis 2060] namespace clash between activity and action #61

Open curiousdannii-testing opened 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : DrFell

Description :

Declaring a new action "printing" causes a clash with the "printing the description of a dark room" activity. The particular line in the Standard Rules which causes the error is "begin the printing the description of a dark room activity".

Problem. In the sentence 'begin the printing the description of a dark room activity' , it looks as if you intend 'the description of a dark room' to be a property, but 'a room' is not specific enough about who or what the owner is.

Sometimes this mistake is made because Inform mostly doesn't understand the English language habit of referring to something indefinite by a common noun - for instance, writing 'change the carrying capacity of the container to 10' throws Inform because it doesn't understand that 'the container' means one which has been discussed recently.

I was trying to match this phrase:

begin the (printing the description of a dark room - activity) activity

I recognised:

printing the description of a dark room = an activity

Steps to reproduce :

Area is a room. Printing is an action applying to one thing.

Additional information :

The bug is new in 6M62.

More generally, this code produces the same error:

Area is a room.
Fooing the bar of a thing is an activity.
When play begins: begin the fooing the bar of a thing activity.
Bar is a kind of value. The bars are qux and baz. A thing has a bar.
Fooing is an action applying to one thing.

imported from: [Mantis 2060] namespace clash between activity and action
  • status: Reported
  • resolution: Open
  • resolved: 2022-04-07T05:02:36+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

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

Comment by zarf :
Confirmed.

Possibly related to http://inform7.com/mantis/view.php?id=1843 , which is also about an overly-eager "of" preposition.