Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 042521457dd9041673d542653a5322a139be7ef1
Ticket: 85b87a7570d65ad9ab32c63a18e91400724e4557
TclByteArrayMatch - unused? premature opt?
User & Date: dgp on 2016-03-08 03:44:58
Changes

  1. icomment:
    
    Ok, the routine originated here:
    
    http://core.tcl.tk/tcl/info/d6f120464eb07ce6
    
    but apparently before it was realized that it
    was only appropriate for pure bytearray values
    because the string -> bytearray transformation
    is not a reversible one.
    
    Once it is realized that the routine can only be
    used for pure bytearrays and is constrained to
    only be called on pure bytearrays, then defining it makes
    roughly as much sense as defining a "string match"
    routine specialized to lists -- not much.
    
    I'm not compelled to remove it just to remove it,
    but I'll try to remember how useless it is if/when
    it becomes an obstacle to internal reform efforts.
    
  2. login: "dgp"
  3. mimetype: "text/plain"