MantisBT - Core Inform
View Issue Details
0000489Core InformUnderstandingpublic2010-12-30 07:462014-05-07 07:33
ektemple 
graham 
normalmildalways
closedfixed 
x86Mac OS X10.6
6G60 
6L02 
(serious/mild) Game compiles but misbehaves
0000489: Certain forms of author-defined KOVs fail to parse in player input
Author-defined KOVs can have optional prefixes, e.g. the minus sign indicating a negative number:

   A real number is a kind of value. -999999.9999 specifies a real number with parts whole and fractional.

The I7 compiler understands both positive and negative forms perfectly well, but Inform is not capable of understanding the negative form in player input.
Test is a room.

A real number is a kind of value. -999999.9999 specifies a real number with parts whole and fractional.

The element-selection set is a list of numbers variable. The element-selection set is {1}.

Scaling elements is an action applying to one real number. Understand "scale [real number]" as scaling elements.

Carry out scaling elements:
say "Scaled to [real number understood]!"

Test me with "scale 0.8000 / scale -0.8000"

[Included to indicate that the compiler can properly understand and print negative real number:]
When play begins:
let N be -1.9000;
say "A real number: [N] !"
No tags attached.
Issue History
2010-12-30 07:46ektempleNew Issue
2010-12-31 02:43jmcgrewStatusnew => acknowledged
2010-12-31 06:35EmacsUserNote Added: 0000937
2010-12-31 06:35EmacsUserStatusacknowledged => confirmed
2010-12-31 07:16EmacsUserReproducibilityhave not tried => always
2014-02-16 08:14grahamNote Added: 0002515
2014-02-16 08:14grahamStatusconfirmed => resolved
2014-02-16 08:14grahamResolutionopen => fixed
2014-02-16 08:14grahamAssigned To => graham
2014-05-07 07:32jmcgrewFixed in Version => 6L02
2014-05-07 07:33jmcgrewStatusresolved => closed

Notes
(0000937)
EmacsUser   
2010-12-31 06:35   
Confirmed. The GPR contains this line:

- - - -
if (cur_addr->wpos == '-') jump Failed_LP_0;
- - - -
(0002515)
graham   
2014-02-16 08:14   
Fixed.