Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002108Core InformAssertions and creationspublic2019-10-02 12:002019-10-03 09:41
ReporterNYKevin 
Assigned To 
PrioritynormalSeveritymildReproducibilityhave not tried
StatusnewResolutionopen 
Platformx86OSWindowsOS Version10
Product Version6M62 
Target VersionFixed in Version 
Summary0002108: Badly-worded KOV name works, but then breaks if other lines are introduced.
DescriptionThe attached source text compiles.

Uncommenting the "hand type" kind causes it to complain about "Every card has a suit of cards" (see additional information for exact text). Adding new lines of code unrelated to the original should not cause this to fail. It should fail up-front so that I know it won't work. Also, the error message makes very little sense and should probably be reworded.

(Also also, you can write a *lot* of other code which doesn't tickle the grammatical engine in exactly the right way, and it continues working. So it takes a long time before you realize you have to rename the kind.)
Minimal Source Text To Reproduce
A card is a kind of thing.
A suit of cards is a kind of value. The plural of suit of cards is suits of cards.
Some suits of cards are clubs, diamonds, hearts, and spades.
Every card has a suit of cards.

[A hand type is a kind of value. The hand types are straight flush, four of a kind, full house, flush, 
straight, three of a kind, two pair, pair, and high card.]

The casino is a room.
Additional InformationProblem. You wrote 'Every card has a suit of cards' : but only an object, kind, rulebook, action or activity can be allowed to have properties or variables, so for instance 'A door has a colour' is fine but not 'A number has a length'.
TagsNo tags attached.
Effect(mild) Compiler accepts invalid code
Attached Files

- Relationships

-  Notes
(0004876)
zarf (developer)
2019-10-03 09:41

The problem has to do with the "of" in "suit of cards". (But not the "cards" part.) I don't know whether this is supposed to be valid or not, however.

- Issue History
Date Modified Username Field Change
2019-10-02 12:00 NYKevin New Issue
2019-10-03 09:41 zarf Note Added: 0004876


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker