|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000390||Core Inform||Properties||public||2010-11-05 20:45||2011-01-10 11:15|
|Assigned To||graham|| |
|Product Version||6F95|| |
|Target Version||Fixed in Version||6G60|| |
|Summary||0000390: Misleading error when giving properties to an action name (and some other types)|
|Description||The code below gives this error:|
Problem. You wrote 'An action name has a number called difficulty' : but this is a kind of value which is not allowed to have properties of its own, because this would be impossible to store in any sensible way. For instance, 'A scene has a number called difficulty.' is fine because there are not many scenes and I know them all, but 'A number has a text called French translation.' is not allowed, because storing something for every possible number takes an impossible amount of space. (See the Kinds index for which kinds can have properties.)
The Kinds index does say these types can't have properties, but "impossible to store in any sensible way" isn't quite true. Built-in enumerated types like action name and use option don't have substantially different storage requirements from user-defined kinds of value.
|Minimal Source Text To Reproduce|
Dojo is a room. An action name has a number called difficulty.
|Tags||No tags attached.|
|Effect||(cosmetic) Error message is badly worded|