MantisBT - Core Inform
View Issue Details
0000302Core InformKinds and type checkingpublic2010-09-21 20:132010-10-28 00:30
AaronReed 
jmcgrew 
normalmildalways
closedfixed 
x86Mac OS X10.6
6E72 
6F95 
(serious/mild) Game compiles but misbehaves
0000302: Changing printed name to an indexed text causes interpreter crash
This code causes interpreter crashes on execution. The built-in terp crashes with "Fatal error: Illegal encoding of a VARop (PC=#1fa9d); Gargoyle crashes with "Fatal error: call to non-routine."

Since it looks as if this could be related to a type-casting failure, possibly related to http://inform7.com/mantis/view.php?id=186. [^]
Stage is a room.
 
To rename to (Y - some indexed text):
now the printed name of location is Y.

When play begins:
rename to "X";
showme Stage.
No tags attached.
Issue History
2010-09-21 20:13AaronReedNew Issue
2010-09-22 00:39jmcgrewNote Added: 0000577
2010-09-22 00:39jmcgrewAssigned To => jmcgrew
2010-09-22 00:39jmcgrewStatusnew => confirmed
2010-09-22 15:45grahamNote Added: 0000580
2010-09-22 15:45grahamStatusconfirmed => resolved
2010-09-22 15:45grahamResolutionopen => fixed
2010-10-25 21:14jmcgrewFixed in Version => 6F95
2010-10-28 00:30jmcgrewStatusresolved => closed

Notes
(0000577)
jmcgrew   
2010-09-22 00:39   
Confirmed for Z-code on Windows. The Glulx version doesn't crash, but the printed name still doesn't appear correctly.
(0000580)
graham   
2010-09-22 15:45   
Yes, the typechecking was insufficient here. It was checking sufficiently to make a test of equality safe, but not sufficiently to make an assertion of it safe. Fixed.

(It wasn't related to 0000186.)