Closed MaksimZh closed 8 years ago
Ouch, yea,that definitely needs fixed.
The spec doesn't permit scientific notation, which makes this a bug in outputting SDLang. But support for scientific notation (maybe even hex float literals) would be nice in a new version of the spec, so I'll open tickets for that.
I'm also going to double-check that the original Java SDL library actually does disallows scientific notation according to the documentaion. If by chance it does accept it, that would give me sufficient justification to simply permit them in SDLang-D as well, without holding it back for a spec v2.
Consistent with the documentation, the original Java implementation rejects SDLang that contains scientific notation. So SDLang-D needs to reject it too, and stop outputting it. This is now fixed in SDLang-D v0.10.1
Scientific notation of floating point numbers is used for output but not recognized on input.
Consider the following program:
The output is