Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002127Core InformActivitiespublic2020-05-13 21:142020-05-19 19:18
Reporterndl 
Assigned To 
PrioritynormalSeveritymildReproducibilityalways
StatusnewResolutionopen 
Platformx86OSWindowsOS Version7
Product Version6M62 
Target VersionFixed in Version 
Summary0002127: Activities with while clause wrongly accept "for the ___ time"
DescriptionRules 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".
TagsNo tags attached.
Effect(mild) Compiler accepts invalid code
Attached Files

- Relationships

-  Notes
(0004909)
zarf (developer)
2020-05-14 23:05

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.
(0004910)
ndl (reporter)
2020-05-19 19:18

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.

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker