Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1cf8fbf36c02331faa30f65627566d0fb96efcbbba1efd7e280929eed14cb31f
Ticket: 1213da116603694f3d1b3199d96142568721cf26
TIP #601 text should not suggest that "-strict" is the default
User & Date: pooryorick on 2023-02-08 19:58:49
Changes

  1. icomment:
    The proposed fix would apply "-strict" to Tcl 9.0, which would be a complete
    mistake.
    
    TIP 346 is for Tcl version 8.7, and TIP 601 is for Tcl version 9.0.  "-strict"
    should be limited to 8.7 as it is not needed in 9.0, since TIP 601, clearly
    states that an exception should be thrown on any conversion error.  TIP 601
    precedes TIP 346.  TIP 346 subsequently adopted the term "-strict" to mean
    "make the TIP 8.7 encoders/decoders behave as specified in TIP 601 for Tcl
    9.0", i.e. make them conform to their respective specifications, and cause any
    encoding error to result in an error at the script level.  "-strict" in 8.7 is
    merely a patch to make 8.7 behave as 9.0 behaves as a result of the
    introduction of TIP 601.  TIP 601 establishes "-nocomplain" as the option that
    reverts to backwards-compatible behaviour.  TIP 346 would directly conflict
    with TIP 601 if it were applied to Tcl 9.0.  Therefore TIP 346 should be
    considered to be a TIP that is strictly limited to 8.7 for the purpose of
    allowing users of version 8.7 to optionally enable the behaviour of the future
    version, 9.0.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"