|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001843||Core Inform||Properties||public||2016-01-09 07:14||2018-05-28 08:51|
|Assigned To|| |
|Product Version||6M62|| |
|Target Version||Fixed in Version|| |
|Summary||0001843: Property names containing the word "of" are sometimes misparsed, depending on unrelated code|
|Description||Consider the source text below. The lines  and  are completely unrelated, but the presence of line  causes line  to be misunderstood in some way. Here is the problem message:|
Problem. You wrote 'A thing has a text called the out of bounds response': 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'.
This does not happen if line  is removed, nor does it happen if the two lines are switched around.
|Minimal Source Text To Reproduce|
Home is a room.
A thing has a text called the out of bounds response. 
A foobar is a kind of value. The foobars are foo and bar. 
|Additional Information||This is a regression in 6M62. The "out of bounds response" in the example is from Computers by Emily Short; the extension still works on its own, but it now fails to compile in the presence of such code as line  here.|
|Tags||No tags attached.|
|Effect||(serious) Compiler rejects valid code|