|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000333||Core Inform||Assertions and creations||public||2010-10-15 21:44||2010-10-28 00:31|
|Assigned To||graham|| |
|Product Version||6E72|| |
|Target Version||Fixed in Version||6F95|| |
|Summary||0000333: "Foo is never 5" prevents the variable's value from being initialized at all|
|Description||I7 allows a variable to be initialized with confidence-level modifiers, e.g. "usually" to let the initialization be overridden later. But if "never" is used, it prevents later initializations from taking effect.|
|Minimal Source Text To Reproduce|
Home is a room.
Foo is a number that varies. Foo is never 5.
Foo is 16.
When play begins, say foo.
|Additional Information||The code above prints 0 instead of 16.|
Perhaps "always" and "never" should just be forbidden on variables, since the values aren't checked at runtime: "foo is always 5" doesn't stop it from being changed to something other than 5.
|Tags||No tags attached.|
|Effect||(serious/mild) Game compiles but misbehaves|