Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0e9d185e8828fa4452fc525a34aafa5f224acc12
Ticket: 1556342fffffffffffffffffffffffffffffffff
set stdin/stdout/stderr with interp transfer/share
User & Date: nobody on 2006-09-13 08:08:32
Changes

  1. icomment:
    Logged In: NO 
    
    Actually, I didn't realize quite how bad it was, I should have figured it out, 
    though, since the Get/SetStdChannel routines don't take an interpreter 
    argument.  I didn't realize it was as bad as having the GetChannelNames and 
    GetChannel calls actually hardcoding in the stdin/out/err names, though.
    
    What's needed is to get away from the idea that the "channel name" is fixed 
    and immutable and is what should be registered in the channel name hash 
    table in each interpreter.  Leaving the current RegisterChannel to pick the 
    name out of the channel, and adding a new one to allow registering it under a 
    supplied name, as well as requiring a name to unregister it, would seem to 
    me to be mostly all that would be needed.  Fix the few places that unregister 
    a channel (i.e. close) to supply the channel name instead of having it be 
    implicit, and you're done.
    
    Get/SetStdChannel would still supply the defaults for a new interpreter, but 
    wouldn't have the weird effects it now has if there is a slave interpreter 
    already initialized when you change the standard channels and it doesn't have 
    the "real" new channel already registered.
    
    [email protected]
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"