Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d97682ea8201a417f0eeba77cf7212fe68c3ac5e
Ticket: 3307281fffffffffffffffffffffffffffffffff
Tcl_SetStdChannel not respected by 'puts'
User & Date: ferrieux on 2011-05-25 14:22:41
Changes

  1. icomment:
    One more thing, when I say "the stdout value", clearly you have to be creative to put your hands on all of them. To analyse to what extent the literal is shared, look at the Tcl_Obj pointer. The following experiment at script level suggests that reasonable sharing can be expected at least with procs and constant "stdout":
    
    % proc f {} {dputs stdout A}
    % proc g {} {dputs stdout B}
    % proc dputs {ch s} {
       puts $ch $s;puts REPR:[::tcl::unsupported::representation $ch]
    }
    % f
    A
    REPR:value is a channel with a refcount of 5, object pointer at 0x8b66560, internal representation 0x8b62180:0x8b38f58, string representation "stdout".
    % g
    B
    REPR:value is a channel with a refcount of 6, object pointer at 0x8b66560, internal representation 0x8b62180:0x8b38f58, string representation "stdout".
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"