Overview
| Artifact ID: | 038435b3736cb2a5a3114fc790562a9e822b529f |
|---|---|
| Ticket: | 1198892fffffffffffffffffffffffffffffffff
expr {2**0} returns 2 instead of 1 |
| User & Date: | arjenmarkus on 2005-05-10 09:23:18 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
As described by Kaitschu in a posting to comp.lang.tcl, the command [expr {2**0}] returns 2 instead of 1. I checked this somewhat special case in the test file, but there is none that explicitly tests this one (there are related tests). Note that [expr {2.0**0}] _does_ return 1.0, as does [expr {2**0.0}] To solve the bug: - Correct the code in tclExecute.c - Add tests for this exponent to expr.test - foundin changed to: "obsolete: 8.5a3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "arjenmarkus"
- subsystem changed to: "16. Commands A-H"
- title changed to: "expr {2**0} returns 2 instead of 1"
- type changed to: "Bug"