Overview
| Artifact ID: | cb2e21acc272a22f5436a21d90324a3a1b28c982 |
|---|---|
| Ticket: | 648441ffffffffffffffffffffffffffffffffff
"0x" handled as float constant |
| User & Date: | oox on 2002-12-05 16:48:11 |
Changes
- icomment:
Logged In: YES user_id=662619 You surely know (much) better than me, but I guess both problems are either a single one or at least deeple related. I've been running [expr 0x] as part of the automated regression testing of a package I maintain from the last four years or so, both in windows and linux, throughout Tcl versions from 8.0, and "0x" has never been handled as float until 8.4.0 in linux. So there's never been any version between platforms not Tcl versions. Now both differences arise, and at the same time. You said "0x" being a fallback floating point constant is genuine C99 behaviour. You also say glibc on Linux is C99 compliant. From how long ago? The strtod(3) man page of the various linux systems I have handy say: "A hexadecimal number consists of a ``0x'' or ``0X'' followed by a nonempty sequence of hexadecimal digits possibly 2...". Notice the nonempty. Juan Carlos---
- login: "oox"
- mimetype: "text/plain"
- username: "oox"