<i>Tcl_SetStdChannel not respected by 'puts'</i> status still Open with 4 other changes
by
.
D 2011-05-25T14:16:11
J icomment Oh,\sI\scan\ssee\sthe\slogic:\sin\sthe\scode\spath\sthat\syou\sdescribe,\sthe\s"stdout"\svalue\sis\sfirst\sused\swhen\spointing\sto\s(say)\sChannel1,\sso\sas\sa\sside-effect\sof\sthis\saccess,\san\sintrep\sof\stype\sChannel\sis\scomputed\sand\sattached\sto\sit.\n\sThen\syou\scall\sTcl_SetStdChannel(OUT,Channel2)\sbut\sthere\sis\sno\seasy\sway\s\sto\sseek\s&\sdestroy\sall\sinstances\sof\sthis\sassociation\s("stdout",\sChannel1),\sso\sit\sremains\sin\saction.\n\nIf\sthis\sinterpretation\sis\sright,\sa\sworkaround\sis\sto\sforce\sa\sshimmer\son\sthe\s"stdout"\svalue,\seg\sby\sconverting\sit\sto\sa\sList\sor\ssimply\sinvalidating\sthe\sintrep\ssince\syou're\sat\sC\slevel.\sThen\son\snext\sIO\saccess,\sthe\sintrep\swill\sbe\srecomputed\sin\saccordance\swith\sthe\snew\sredirection.\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3307281fffffffffffffffffffffffffffffffff
U ferrieux
Z 387f12dd8995103b69ed0447893a5427