Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 86e39523bc5c9ed9ecfd5e9aa6d532ecc15cad6c
Ticket: 219162ffffffffffffffffffffffffffffffffff
Tcl_Obj needs to have invalid transformations
User & Date: dkf on 2000-11-08 18:22:53
Changes

  1. icomment:
    When doing this sort of thing in my own code, I've always allowed conversion *to* strings, typically by just printing the pointer out using the %p substitution in sprintf(), and just blocked conversion from strings (which is trivially done by making the appropriate function in the ObjType return an error for all non-blessed inputs.)
    Note that it is easier to preserve object representations from 8.3 onwards since Tcl_EvalObj is not quite so aggressively string-oriented (build your command as a list using the ListObj funcs and the internal reps should make it through unscathed.)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"