Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f21a7b1c194a7ab0f1d3ee44ad41f63578bd89aaf6f72a919528884a58fb1f0d
Ticket: 40c61a5d10e9b6478a096723bfc78fd85664f637
Compiler warning/inconsistant error-message in TIP #656 implementation
User & Date: jan.nijtmans on 2023-02-23 11:47:49
Changes

  1. icomment:
    > Your edit removes the outermost ? which is not the same thing ...
    
    Did you notice the usage of "INTERP_ALTERNATE_WRONG_ARGS"? Most likely you are not aware of this feature. It's what other commands (like "socket") use when the syntax has multiple alternatives.
    
    <pre>
    % encoding convertfrom -profile tcl ascii
    wrong # args: should be "::tcl::encoding::convertfrom ?-profile profile? ?-failindex var? encoding data" or "::tcl::encoding::convertfrom data"
    </pre>
    
    This way, we put the prefered syntax (making 'encoding' mandatory) first, and the alternative (for 8.6 compatibility) second ☺
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"