Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6e977ba3559c97c299fc66d476968cfb0898d6238b3a27be7a3c8cd3f49d6549
Ticket: 597c31a3876f1ceaa1ed80c779c22b9bd2e57ff0
outdated comment in ScanNumber()
User & Date: chrstphrchvz on 2022-02-17 09:28:49
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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]
    
  5. is_private changed to: "0"
  6. login: "chrstphrchvz"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Cosmetic"
  10. status changed to: "Open"
  11. submitter changed to: "chrstphrchvz"
  12. subsystem changed to: "- New Builtin Commands"
  13. title changed to: "outdated comment in ScanNumber()"
  14. type changed to: "Patch"