Skip to content
Tcl Source Code Artifact [82833d2aa6]
Login

Artifact [82833d2aa6]

Artifact 82833d2aa6a02b3a4990bf411433f13a88ea8627:

Ticket change [82833d2aa6] - Ticket [7b0e690b70e84f3c|7b0e690b70] <i>chan push returns channel ID</i> status still Open with 4 other changes by anonymous on 2014-10-14 00:11:15.
D 2014-10-14T00:11:15.349
J icomment Let\sme\ssee\sif\sI\scan\sexplain.\s\sI\sdo\sa\s[chan\spush],\sand\sI\sregister\s[mytrans].\s\sSuppose\sI\swant\s[mytrans]\sto\sbe\sable\sto\saccess\ssome\sdata\sstructure\srelated\sto\sthe\sparticular\sinstance\sof\s[chan\spush].\s\sThe\slogical\sway,\sgiven\sthe\sway\sthe\sman\spage\sis\swritten,\sis\sto\scapture\sthe\stransform\shandle\sreturned\sby\s[chan\spush]\sand\suse\sit\sas\sa\skey\sinto\san\sarray.\s\sBut\sas\sit\sis,\sI\scan't\sdo\sthat.\s\sInstead\sI\shave\sto\sdefine\smy\sown\skey,\spass\sit\sto\s[mytrans]\sas\sa\sprefix\sargument.\s\sOK,\sfine.\r\n\r\nBut\sthen,\swhat's\sthe\spoint\sof\spassing\sthe\stransform\shandle\sto\sthe\scallback?\s\sIt\sisn't\sgood\sfor\sanything\sexcept\smaybe\sdebugging.\r\n\r\nAnd\sthen,\swhy\sbother\spassing\sthe\sfile\shandle\sback\sfrom\s[chan\spush]?\s\sYou\sget\sback\sexactly\sthe\ssame\sname\sas\syou\spassed\sin,\swhich\syou\salready\shad\s(even\sif\sit\snames\ssomething\sdifferent\snow).\r\n\r\nIt\sseems\sto\sme\sthat\shaving\s[chan\spush]\sdo\swhat\sthe\sman\spage\ssays\smight\sbe\suseful,\swhereas\sthe\scurrent\sbehavior\sadds\sno\svalue\sat\sall.\s\s[chan\spush]\smight\sas\swell\sreturn\snothing.
J login anonymous
J mimetype text/plain
J username will
K 7b0e690b70e84f3cb1d7278c3f160415514f5fa9
U anonymous
Z 1e327b6d01d9ecd4ad6d97514026ccf2