MantisBT - Core Inform
View Issue Details
0000446Core InformTablespublic2010-11-30 08:162014-05-07 07:35
x86Mac OS X10.6
(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
a person

Table of Testing Two
subject_ (a person)
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

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.
2011-06-30 15:39   
Adjusted the summary and description to incorporate information from 0000572.
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.