Overview
| Artifact ID: | f912af527dc910358eb0affadf1c288545567c7c |
|---|---|
| Ticket: | 3105247fffffffffffffffffffffffffffffffff
-NaN? |
| User & Date: | nijtmans on 2010-12-22 22:06:04 |
Changes
- icomment:
Great! After some more experimenting, here is a patch (snan_2.patch) which moves the check to Tcl_(Set|New)DoubleObj, as you suggest. I think that's a nice solution: - It makes it impossible to get an snan in a floating point register: it is just handled as a string and will generate an exception as soon as an attempt is made to handle it as a float. - roundrtip is impossible for snan's, a nice error message is generated. Exception masking is out-of-scope here, we woulsn't make it for Tcl 8.6 anyway Please, evaluate. various test cases are added. Regards, Jan Nijtmans - login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"