Bug 43585

Informational

GemStone/S 64 Bit

3.1.0.6, 3.1.0.5, 3.1.0.4, 3.1.0.3, 3.1.0.2, 3.1.0.1, 3.1, 3.0.1, 3.0, 2.4.8, 2.4.7, 2.4.6, 2.4.5.1, 2.4.5, 2.4.4.8, 2.4.4.7, 2.4.4.6, 2.4.4.5, 2.4.4.4, 2.4.4.3, 2.4.4, 2.4.3, 2.4.2.1, 2.4.2, 2.4.1, 2.4, 2.4, 2.3.1.6, 2.3.1, 2.3, 2.3, 2.2.6.5, 2.2.5.4, 2.2.5.3, 2.2.5.2, 2.2.x, 2.x, 1.x

3.2

Positive exponent literals interpreted differently between GemStone and VisualWorks

GemStone historically supports + in exponent notation, e.g. 1E+3.  This
does not follow the ANSI standard nor the VW behavior, which interprets
that + as an addition operator.

Starting in v3.2, the + operator is disallowed when creating literal Doubles
in exponent notation; to avoid the risk of different results,

For example:

-  In GemStone versions before 3.2:   1E+3 = 1E3 = 1000
-  In VisualWorks:  1E+3 = 1E + 3 = 4

In GemStone 3.2 and later: 1E+3 creates a compiler error.
- to get results similar to VisualWorks, use 1E0+3.
- to get results similar to older versions of GemStone, use 1E3


                

Last updated: 5/8/14