Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2c56e45fcc4a697de62f5a33cd59455e0bd81033
Ticket: 1665628fffffffffffffffffffffffffffffffff
destructive scan of a ByteArray
User & Date: dkf on 2009-02-21 16:40:44
Changes

  1. foundin changed to: "None"
  2. icomment:
    
    
    data_type - 360894
    
    Right now, Tcl_GetByteArrayFromObj is not an API that can fail. (To be exact, it can't report the nature of the failure since it does not take a Tcl_Interp argument.) Going through the API to change this would be substantially disruptive, and equally so for third-party code. And Tcl_Panic is not appropriate either; that shouldn't be used for cases that are not C-level programming errors (we do it for memory management only because we don't know a good way to recover in general...) Given all this, I'm unwilling to countenance what you're proposing; the adding of new failure modes is tricky.
    
    The original problem seems solved enough that this can be a FRQ.
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. subsystem changed to: "12. ByteArray Object"
  6. title changed to: "destructive scan of a ByteArray"
  7. username: "dkf"