MantisBT - Core Inform
View Issue Details
0000500Core InformRules and rulebookspublic2011-01-09 17:102014-05-07 07:35
Ron Newcomb 
graham 
normalseriousalways
closedfixed 
PPCMac OS X10.4
6G60 
6L02 
(serious) Compiler rejects valid code
0000500: A rule has "when" in its name, causing spurious syntax errors.
The "can't exit when not inside anything rule" cannot be named in rule headers due to Inform interpreting "when" differently. Recommend rule be renamed to the "can't exit what's not enclosing rule" to match the naming pattern set by many other rules.
There is room.

The of course rules are a rule based rulebook.

Of course for the can't give to yourself rule: rule succeeds.
Of course for the can't wear what's already worn rule: rule succeeds.
Of course for the can't remove what's not inside rule: rule succeeds.
Of course for the can't exit when not inside anything rule: rule succeeds.

Problem. You wrote 'Of course for the can't exit when not inside anything rule' , but the description of the thing(s) to which the rule applies ('the can't exit') did not make sense. This is a rule based rulebook, so that should have described a rule.
No tags attached.
child of 0000686closed graham Umbrella issue: ni misses an alternative parsing of the source text 
Issue History
2011-01-09 17:10Ron NewcombNew Issue
2011-01-09 17:11Ron NewcombNote Added: 0000955
2011-01-10 11:11jmcgrewSeveritymild => serious
2011-01-10 11:11jmcgrewStatusnew => confirmed
2011-07-02 18:07EmacsUserRelationship addedrelated to 0000686
2012-04-02 11:59EmacsUserRelationship replacedchild of 0000686
2014-01-19 11:27grahamNote Added: 0002329
2014-01-19 11:27grahamStatusconfirmed => resolved
2014-01-19 11:27grahamResolutionopen => fixed
2014-01-19 11:27grahamAssigned To => graham
2014-05-07 07:34jmcgrewFixed in Version => 6L02
2014-05-07 07:35jmcgrewStatusresolved => closed

Notes
(0000955)
Ron Newcomb   
2011-01-09 17:11   
500th bug! :-P
(0002329)
graham   
2014-01-19 11:27   
Inform is now able to resolve this one.