Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e51d4a9ea79cf5e2269acdc2043a030eddaa495d1d03b85dbb3bfefe59143a59
Ticket: e5691de2eb49302428e77726a057449a06f499da
Tcl_ObjPrintf() - 'Unable to format "%p" with supplied arguments: '
User & Date: dgp on 2018-01-23 20:18:51
Changes

  1. icomment:
    
    Documentation for Tcl_ObjPrintf() is here
    
    http://www.tcl.tk/man/tcl8.6/TclLib/StringObj.htm
    
    Tcl_ObjPrintf() is a C routine providing access to the same
    formatting engine that drives the [format] command.
    
    http://www.tcl.tk/man/tcl8.6/TclCmd/format.htm
    
    The [format] command does not support a %p conversion
    specifier, so neither does Tcl_ObjPrintf().
    
    No bug here.
    
    It's conceivable that adding %p to both [format] and
    Tcl_ObjPrintf() could be a feature request, but it seems
    like a risky and ill-considered one. Exposing pointer values
    to scripts or messages for anything other than debugging
    purposes does not seem like a good idea to me at all.
    
  2. login: "dgp"
  3. mimetype: "text/plain"