MantisBT - Core Inform
View Issue Details
0000994Core InformPropertiespublic2012-08-17 00:012014-05-07 07:33
curiousdannii 
graham 
normalmildalways
closedfixed 
6G60 
6L02 
(serious) Compiler rejects valid code
0000994: Using enumerable values as properties breaks relations
This code sets up an enumerable value kind, and a relation between them. If the kind is used as a property, then the relation cannot be specified after that point in the code.

It does work if the property is given a specific name.

This might be related to one of the umbrella issues?
There is a room.

Faction is a kind of value. The factions are friendly, passive, hostile.

Hating relates various factions to various factions.
The verb to hate (he hates, they hate, he hated, it is hated, he is hating) implies the hating relation.

Friendly hates hostile.

A person has a faction [called factionb.] [Uncomment to fix]

Hostile hates friendly.
Problem. You wrote 'Hostile hates friendly' : but this seems to give a worldly relationship to something intangible, like saying that 'in the box is a text'. Perhaps it came to this because you gave something physical a name which was accidentally something meaningful to me in another context? If so, you may be able to get around it by rewording ('In the box is a medieval text') or in extremis by using 'called' ('In the box is a thing called text').
No tags attached.
Issue History
2012-08-17 00:01curiousdanniiNew Issue
2012-08-19 18:41EmacsUserRelationship addedchild of 0000898
2012-08-19 18:42EmacsUserStatusnew => confirmed
2014-03-09 16:03grahamRelationship deletedchild of 0000898
2014-03-15 02:26grahamNote Added: 0002558
2014-03-15 02:26grahamStatusconfirmed => resolved
2014-03-15 02:26grahamResolutionopen => fixed
2014-03-15 02:26grahamAssigned To => graham
2014-05-07 07:32jmcgrewFixed in Version => 6L02
2014-05-07 07:33jmcgrewStatusresolved => closed

Notes
(0002558)
graham   
2014-03-15 02:26   
Not strictly speaking a bug fix, but a worthwhile improvement to make, and it's now made.