MantisBT - Documentation, Examples, and Web Site
View Issue Details
0000499Documentation, Examples, and Web SiteWriting with Informpublic2011-01-09 12:132014-05-07 07:38
Victor Gijsbers 
0000499: Section 25.21 should say something about how to declare new I6 variables
The current manual says:

[W]e can instead tell Inform to use an existing I6 variable (either one that we declare ourselves, or one in the I6 template layer). For example: [...] The current room description style variable translates into I6 as "lookmode".

Here, the example is one where we use a variable in the I6 template layer. Any user trying to declare his own variable using the syntax gleaned from the previous sections (25.18, for instance) will find that

Include (- Global my_variable = 0; -)

gives compilation errors (if the variable is called anywhere in the program). The correct syntax for setting up one's own I6 variable is:

Include (- Global my_variable = 0; -) after "Definitions.i6t".

I think the documentation would be improved by mentioning this in section 25.21.
No tags attached.
Issue History
2011-01-09 12:13Victor GijsbersNew Issue
2011-01-09 13:25jmcgrewStatusnew => confirmed
2011-01-09 17:13Ron NewcombNote Added: 0000956
2011-05-17 12:50emshortAssigned To => graham
2011-05-17 12:50emshortStatusconfirmed => resolved
2011-05-17 12:50emshortResolutionopen => fixed
2014-05-07 07:37jmcgrewFixed in Version => 6L02
2014-05-07 07:38jmcgrewStatusresolved => closed

Ron Newcomb   
2011-01-09 17:13   
For that matter, without the [after "Definitions.i6t".] bit, where does it go? Perhaps [after "Definitions.i6t".] should be the default? (Or would that break some other common thing?)