Skip to content
Tcl Source Code Artifact [d425cee112]
Login

Artifact [d425cee112]

Artifact d425cee112f81e5b5798dfe3acddaba729044dfc:

Ticket change [d425cee112] - Ticket [4955f5d8a4dce006|4955f5d8a4] <i>tailcall splicing spot vs. raw TclInvokeObjectCommand</i> status still Open with 5 other changes by ferrieux on 2014-05-17 09:24:31.
D 2014-05-17T09:24:31.172
J comment When\scalled\sat\slevel\s1\sin\sTclInvokeObjectCommand,\stailcall\spanics:\r\n\r\n\s\stailcall\scannot\sfind\sthe\sright\ssplicing\sspot:\sshould\snot\shappen!\r\n\r\nBy\slevel\s1\sI\smean:\sin\sa\sproc\sdirectly\scalled\sby\sTclInvokeObjectCommand:\r\n\r\n\s\sproc\sf\s{}\s{tailcall\sg}\r\n\s\sproc\sg\s{}\s{puts\sGGG}\r\n\r\n\s\s/*\sin\sC\s*/\sTcl_GetCommandInfo(interp,"f",&info);\r\n\s\s/*\sin\sC\s*/\s(*info.proc)(info.clientData,interp...);\r\n\r\nAt\slevels\s2\sand\sabove,\severything\sis\sfine:\r\n\r\n\s\sproc\sh\s{}\sf\r\n\r\n\s\s/*\sin\sC\s*/\sTcl_GetCommandInfo(interp,"h",&info);\r\n\s\s/*\sin\sC\s*/\s(*info.proc)(info.clientData,interp...);\r\n\r\nNote\sthat\sthis\sneedle\swas\sin\sthe\shaystack\sof\sa\sTk\sembedding\sscenario:\s"lablTk",\swhich\sis\sa\sprominent\sTk\sbinding\sfor\sOCaml.\r\n\r\n\shttps://groups.google.com/d/msg/comp.lang.tcl/HWROy01ZrXY/ElUbGyWvg44J\r\n\r\nIt\sturns\sout\sthat\sin\sUnix,\sthe\scolor\spicker\sand\sother\ssimilar\snonnative\smodal\sdialogs\shave\sa\slevel-1\stailcall:\r\n\r\n\s\s#\sin\stk.tcl\r\n\s\sif\s{![llength\s[info\scommands\stk_chooseColor]]}\s{\r\n\s\s\s\s\s\sproc\s::tk_chooseColor\s{args}\s{\r\n\s\s\ttailcall\s::tk::dialog::color::\s{*}$args\r\n\s\s\s\s\s\s}\r\n\s\s}
J icomment Updated\stitle\sand\sdescription\sto\sreflect\sthe\sfact\sthat\sTcl_Eval\sis\snot\sinvolved\sat\sall.
J login ferrieux
J mimetype text/plain
J title tailcall\ssplicing\sspot\svs.\sraw\sTclInvokeObjectCommand
K 4955f5d8a4dce006e063f924bc9709f7850ecb6a
U ferrieux
Z 935dc41ed05256287c7050051ff3cab2