MantisBT - Core Inform
View Issue Details
0000446Core InformTablespublic2010-11-30 08:162014-05-07 07:35
ektemple 
graham 
normalseriousalways
closedfixed 
x86Mac OS X10.6
6F95 
6L02 
(serious) Compiler rejects valid code
0000446: Inform rejects kinds other than object, number, text, and indexed text in parenthetical table column typing
If you attempt to use a kind (other than object, number, text, and indexed text) parenthetically in a table column name, Inform rejects the attempt to type with this message:

"Brackets are only allowed in table column names when giving the kind of value which will be stored in the column. So 'poems (indexed text)' is legal, but not 'poems (chiefly lyrical)'."

Possibly this kind of typing is not allowed, but Table of Testing One shows that typing in the same way on a separate header line is accepted (but see report 0000444--this does not act as expected). More to the point, Inform *will* infer the type of the column as "person" if no attempt at explicit typing is made. (Again, see report 0000444.)
Test is a room. There is a pen in Test.

Table of Testing One
subject
a person
yourself
--

Table of Testing Two
subject_ (a person)
yourself
--
No tags attached.
related to 0000444closed graham Inform ignores explicit typing for table columns 
has duplicate 0000572closed  A blank table with parenthetical kind definitions next to column titles for non-numeric, non-text kinds won't compile 
Issue History
2010-11-30 08:16ektempleNew Issue
2010-11-30 09:03jmcgrewRelationship addedrelated to 0000444
2010-11-30 09:04jmcgrewSeveritymild => serious
2010-11-30 09:04jmcgrewReproducibilityhave not tried => always
2010-11-30 09:04jmcgrewStatusnew => confirmed
2010-11-30 10:21Ron NewcombNote Added: 0000871
2011-06-30 15:39EmacsUserNote Added: 0001209
2011-06-30 15:39EmacsUserSummaryInform rejects subkinds of object in parenthetical table column typing => Inform rejects kinds other than object, number, text, and indexed text in parenthetical table column typing
2011-06-30 15:39EmacsUserDescription Updatedbug_revision_view_page.php?rev_id=516#r516
2011-06-30 15:40EmacsUserRelationship addedhas duplicate 0000572
2011-10-22 08:40grahamNote Added: 0001421
2011-10-22 08:40grahamStatusconfirmed => resolved
2011-10-22 08:40grahamResolutionopen => fixed
2011-10-22 08:40grahamAssigned To => graham
2014-05-07 07:34jmcgrewFixed in Version => 6L02
2014-05-07 07:35jmcgrewStatusresolved => closed

Notes
(0000871)
Ron Newcomb   
2010-11-30 10:21   
Possibly related:

I submitted a bug report (long before Mantis existed) that when type was inferred from Bob, the column was set to type Man rather than Person. (Likewise for Janet: Woman rather than Person.) Since a person is almost always one or the other, a special case was added to infer Person rather than Man/Woman.
(0001209)
EmacsUser   
2011-06-30 15:39   
Adjusted the summary and description to incorporate information from 0000572.
(0001421)
graham   
2011-10-22 08:40   
Fixed. The list of possibilities it accepted was actually broader than that, but you can now use any named kind here.