|Anonymous | Login | Signup for a new account||2018-12-09 16:54 PST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000124||Core Inform||Properties||public||2010-06-24 17:10||2010-10-28 00:31|
|Target Version||Fixed in Version||6F95|
|Summary||0000124: Defining a property of an individual value (not object) is allowed but doesn't work|
|Description||The value of "countervalue of Eightball" stays at zero and never goes up.|
|Minimal Source Text To Reproduce|
The Study is a room. Eightball is a scene. Eightball has a number called countervalue. Eightball begins when play begins. Every turn during Eightball: increase the countervalue of Eightball by 1; say "[countervalue of Eightball]". Test me with "z/z/z/z/z/z"
|Tags||No tags attached.|
|Effect||(serious/mild) Game compiles but misbehaves|
|On Glulx, this prints 0 every turn. On Z-code, it gives some runtime errors and prints a garbage value.|
Note, this works if you assign the countervalue property to scenes in general, rather than to Eightball specifically. In other words, the following code behaves as it should:
The Study is a room.
Eightball is a scene.
A scene has a number called countervalue.
Eightball begins when play begins.
Every turn during Eightball:
increase the countervalue of Eightball by 1;
say "[countervalue of Eightball]".
Test me with "z/z/z/z/z/z"
Interesting. This breaks too:
Home is a room.
Color is a kind of value. The colors are red, green, and blue.
Red has a number called redness.
When play begins:
now the redness of red is 15;
say the redness of red.
I'm not sure if this is supposed to be legal.
|These are indeed both legal source texts; it was a bug, or rather, an oversight - the necessary storage wasn't being created. Fixed, and both source texts produce the expected results.|
|2010-06-24 17:10||jmcgrew||New Issue|
|2010-06-24 17:13||jmcgrew||Note Added: 0000152|
|2010-06-24 17:13||jmcgrew||Reproducibility||have not tried => always|
|2010-06-24 17:13||jmcgrew||Status||new => confirmed|
|2010-09-15 14:46||mikegentry||Note Added: 0000553|
|2010-09-16 17:53||jmcgrew||Note Added: 0000555|
|2010-09-16 17:55||jmcgrew||Summary||"increase" doesn't work with scene properties => Defining a property of an individual value (not object) is allowed but doesn't work|
|2010-09-27 11:07||graham||Note Added: 0000601|
|2010-09-27 11:07||graham||Status||confirmed => resolved|
|2010-09-27 11:07||graham||Resolution||open => fixed|
|2010-09-27 11:07||graham||Assigned To||=> graham|
|2010-10-24 12:05||jmcgrew||Reporter||jmcgrew => email|
|2010-10-25 21:14||jmcgrew||Fixed in Version||=> 6F95|
|2010-10-28 00:31||jmcgrew||Status||resolved => closed|
|Copyright © 2000 - 2010 MantisBT Group|