From: SourceForge.net <no...@so...> - 2006-01-14 03:20:54
|
Bugs item #1382287, was opened at 12/16/05 01:30 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1382287&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 18. Commands M-Z Group: development: 8.5a4 >Status: Closed Resolution: Fixed Priority: 7 Submitted By: tobias_hippler (thippler) Assigned to: Kevin B KENNY (kennykb) Summary: "string is double" shimmers object, while returning 0 Initial Comment: Since a4 a new string to number conversion technique has been introduced. This new behaviour, in current state, can lead to severe program failures. The question is, can it be considered valid for "string is double" to return 0 (false) while shimmering the Tcl_Obj in question to "double"? The attached TCL snippet illustrates the problem. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 01/13/06 19:20 Message: Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 12/19/05 10:39 Message: Logged In: YES user_id=80530 updated patch includes tests. committing now, but leaving assigned to kennykb in case he wants further review when back at work. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 12/19/05 10:14 Message: Logged In: YES user_id=80530 here's a patch that fixes 1382287 and 1360532. still needs some test cases. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 12/16/05 12:12 Message: Logged In: YES user_id=80530 This is related to 1360532. Both bugs arise because the [string is] implementation does its own scan checking for trailing whitespace after TclParseNumber returns. The "right" solution may still involve more revisions to the TclParseNumber() interface. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 12/16/05 09:11 Message: Logged In: YES user_id=80530 % set x 2turtledoves 2turtledoves % string is double $x 0 % string is double $x 1 ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 12/16/05 09:03 Message: Logged In: YES user_id=80530 Thanks for catching this. ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 12/16/05 01:35 Message: Logged In: YES user_id=148712 No file is attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1382287&group_id=10894 |