MantisBT - Core Inform
View Issue Details
0000044Core InformKinds and type checkingpublic2010-06-16 07:182010-07-01 23:07
fundin 
graham 
normalcriticalalways
closedfixed 
x86WindowsVista
6E59 
6E72 
(critical) Compiler crashes
0000044: Lack of type checking in arithmetic phrases
Arithmetic phrases can be applied to non-arithmetic values
without triggering any problem reports.
Home is a room.

When play begins: showme "apples" plus "bananas".
The arithmetic phrases in the Standard Rules are defined as applying to "arithmetic value" parameters, but other types (including text, indexed text, and object) are accepted as long as both parameters are the same type.

This version crashes the compiler with code 10:

  Home is a room.
  
  When play begins: showme the square root of "hello".
No tags attached.
Issue History
2010-06-16 07:18fundinNew Issue
2010-06-16 08:03jmcgrewStatusnew => acknowledged
2010-06-18 01:45jmcgrewSeveritymild => critical
2010-06-18 01:45jmcgrewStatusacknowledged => confirmed
2010-06-18 01:45jmcgrewAdditional Information Updatedbug_revision_view_page.php?rev_id=37#r37
2010-06-18 01:45jmcgrewEffect(mild) Compiler accepts invalid code => (critical) Compiler crashes
2010-06-18 15:39grahamNote Added: 0000045
2010-06-18 15:39grahamStatusconfirmed => resolved
2010-06-18 15:39grahamResolutionopen => fixed
2010-06-18 15:39grahamAssigned To => graham
2010-06-30 18:07jmcgrewFixed in Version => 6E72
2010-07-01 23:07jmcgrewStatusresolved => closed

Notes
(0000045)
graham   
2010-06-18 15:39   
Fixed (both parts) - an oversight.