|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001060||Core Inform||Relations||public||2012-12-30 09:01||2014-05-07 07:33|
|Assigned To||graham|| |
|Product Version||6G60|| |
|Target Version||Fixed in Version||6L02|| |
|Summary||0001060: "greater than" and "less than" in object descriptions behave wrong|
|Description||(I am putting this in "Relations", but it does *not* involve the numerically-greater-than and numerically-less-than relations. This is about object descriptions.)|
In the code below, the first two cases compile correctly, but the last two do not. If we look down in the guts, *both* the "greater than" and "less than" cases generate functions with a "Card>=2" test. (E.g., both of them are acting like greater-than-or-equal-to.)
|Minimal Source Text To Reproduce|
The Kitchen is a room. "Kitcheny."
The Closet is a room.
The apple is in the Closet.
The pear is in the Closet.
When play begins:
if there are more than 2 things in the Closet:
say "More than.";
if there are fewer than 2 things in the Closet:
say "Fewer than.";
if there are greater than 2 things in the Closet:
say "Greater than.";
if there are less than 2 things in the Closet:
say "Less than.";
[The first two cases correctly print nothing. The last two incorrectly print "greater than"
and "less than".]
|Effect||(serious/mild) Game compiles but misbehaves|