Overview
| Artifact ID: | 1766e4ae66b9f986e097aefe1235f761ae41e61b |
|---|---|
| Ticket: | 2859027fffffffffffffffffffffffffffffffff
Bytecode Compiler & tcl_precision |
| User & Date: | dgp on 2009-09-16 00:34:49 |
Changes
- assignee changed to: "dgp"
- icomment:
Starting in Tcl 8.5, the expression parser detects constant expressions such as " 1.1 + 2.2 " and notices that their value is completely known at compile time, and creates bytecode that simply pushes that value on the stack. There is no runtime computation at all. This makes perfect sense using the 8.5 defaults where EIAS for double values actually works. For legacy support of scripts continuing to use the ::tcl_precision variable against advice, the assumption that a constant expression will always compute the same result fails. Perhaps this can be fixed with some additional detections of changes to the ::tcl_precision variable triggering a reset of some compile epoch to force recompile of the expressions?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"