Overview
| Artifact ID: | 6e977ba3559c97c299fc66d476968cfb0898d6238b3a27be7a3c8cd3f49d6549 |
|---|---|
| Ticket: | 597c31a3876f1ceaa1ed80c779c22b9bd2e57ff0
outdated comment in ScanNumber() |
| User & Date: | chrstphrchvz on 2022-02-17 09:28:49 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
There is a comment in <tt>ScanNumber()</tt> that seems outdated and/or redundant; I suggest removing it (see attached patch). From what I can tell, a long time ago (Tcl 8.0), <tt>ScanNumber()</tt> used to declare <tt>buffer</tt> to be <tt>char*</tt> of unspecified signedness. Eventually some portability handling and explanatory comment were added. But not too long after this, <tt>ScanNumber()</tt> declared <tt>buffer</tt> to be <tt>unsigned char*</tt> and removed a bunch of casts to <tt>unsigned char</tt>, but left the comment as-is. Both the comment and the type declaration change appeared in Tcl 8.1a1, and in the check-in history I only found the cumulative changes for 8.1a2: [https://core.tcl-lang.org/tcl/fdiff?v1=c5dc6b7b98a880a4&v2=0ad90ea0fbbdd13b], and I did not locate a remark about it in the change log files. However a patch posted to comp.lang.tcl seems to confirm that the comment is older, and that there was intention to remove it (at least at one point): [https://groups.google.com/g/comp.lang.tcl/c/4hFpmsMDFOQ/m/jGgcGwvT_LoJ]
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Cosmetic"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "outdated comment in ScanNumber()"
- type changed to: "Patch"