|Anonymous | Login | Signup for a new account||2020-07-13 01:30 PDT|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002127||Core Inform||Activities||public||2020-05-13 21:14||2020-05-19 19:18|
|Target Version||Fixed in Version|
|Summary||0002127: Activities with while clause wrongly accept "for the ___ time"|
|Description||Rules before, for, and after activities that have a while clause accept the addition "for the ____ time" but are always invoked if it said first time and are never invoked for second or greater time. I assume that it was not supposed to be valid for activities at all (without the while clause the compiler rejects it).|
|Minimal Source Text To Reproduce|
for printing the name of something while looking for the first time: say "test".
|Tags||No tags attached.|
|Effect||(mild) Compiler accepts invalid code|
I think you're specifying a valid condition that doesn't mean what you think it means.
"...while looking for the first time" falls under chapter 9.14. If you look several times in a row, that's still the first spell of looking, so the condition remains true. If you type some other command and then go back to looking, then you are in the second spell of looking.
This is different from the way action rules are interpreted in chapter 7.16, which is what you expected.
I don't know if an error should be added for this case, but as the language is presently defined, it's not a bug.
|It's hard to imagine the intention was for consecutive actions to all be considered first time, that only makes sense for being in a location like as described in the documentation.|
|2020-05-13 21:14||ndl||New Issue|
|2020-05-14 23:05||zarf||Note Added: 0004909|
|2020-05-19 19:18||ndl||Note Added: 0004910|
|Copyright © 2000 - 2010 MantisBT Group|