Overview
| Artifact ID: | c134581a61e56345063f7d3b742605b37f483664 |
|---|---|
| Ticket: | 218868ffffffffffffffffffffffffffffffffff
Improvement of error messages for Tcl frequently made mistak |
| User & Date: | nobody on 2000-10-26 01:06:57 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2467 RFE Version: 8.2 SubmitDate: '1999-07-28' LastModified: '1999-12-03' Severity: LOW Status: Released Submitter: techsupp ChangedBy: hobbs OS: All Machine: NA FixedDate: '1999-12-03' FixedInVersion: 8.3b1 ClosedDate: '2000-10-25' Name: Frederic BONNET Comments: Cameron Laird maintains a page with frequently made mistakes in Tcl at: http://Starbase.NeoSoft.COM/~claird/comp.lang.tcl/fmm.html This patch is related to the following FMMs: http://Starbase.NeoSoft.COM/~claird/comp.lang.tcl/fmm.html#zero http://Starbase.NeoSoft.COM/~claird/comp.lang.tcl/fmm.html#comments DesiredBehavior: The following patches add more explicit information when the two most frequently made mistakes in Tcl are encountered: comments in switch and bad octal values. When Tcl encounters an error during a switch statement, it checks for patterns beginning with #. This proves to be an efficient heuristic to detect incorrectly placed comments in switch statements. It then append the following string to the error message: "this can be due to a comment incorrectly placed outside a switch body - see the Tcl and switch man pages" Everywhere Tcl expects an integer and detects an error, it will also check if the string uses an invalid octal representation (ie an integer with a leading zero) and append the following message: "<integer> uses an incorrect octal representation - see the expr man page" Patch: http://www.multimania.com/fbonnet/pub/fmm8.0.5.patch (for Tcl8.0.5) http://www.multimania.com/fbonnet/pub/fmm8.1.1.patch (for Tcl8.1.1) PatchFiles: generic/tclCmdMZ.c generic/tclGet.c generic/tclObj.c generic/tclExecute.c generic/tclUtil.c generic/tclInt.h 8.3 has improved error messages. -- 12/03/1999 hobbs - foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Improvement of error messages for Tcl frequently made mistak
- type changed to: "RFE"