View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0000779 | Core Inform | Lists | public | 2011-10-15 10:11 | 2014-05-07 07:34 |
|
Reporter | mattweiner | |
Assigned To | graham | |
Priority | normal | Severity | cosmetic | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | x86 | OS | Mac OS X | OS Version | 10.5 |
Product Version | 6G60 | |
Target Version | | Fixed in Version | 6L02 | |
|
Summary | 0000779: Error message for using temporary variables in description does not cover all possible cases |
Description | The source text yields the following error:
Problem. You wrote 'let held-list be the list of things held by the actor' : but descriptions used as values are not allowed to contain references to temporary variables defined by 'let' or by loops, because they may very well not exist any more when the description needs to be used, in another time and another place.
But the problematic variable, "the actor," is not created by "let" or a loop. |
Minimal Source Text To Reproduce | Lab is a room. The player carries a test tube.
Instead of someone singing:
let held-list be the list of things held by the actor;
say "Held: [held-list]." |
Additional Information | I suggest changing the text to "temporary variables *such as those* defined by 'let' or by loops," and also having the error message state which variable caused the problem.
Also perhaps worth noting is that "the player" isn't actually a temporary variable but a rulebook variable.
More discussion at http://www.intfiction.org/forum/viewtopic.php?p=24167#p24167 [^] and following posts. |
Tags | No tags attached. |
|
Effect | (cosmetic) Error message is badly worded |
|
Attached Files | |
|