<i>tailcall splicing spot vs. string-based Tcl_Eval</i> status still Open with 3 other changes
by
.
D 2014-05-12T22:41:29.285
J comment When\scalled\sat\slevel\s1\sin\sTcl_Eval\s(the\sold,\sstring-based\sone),\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\sTcl_Eval:\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_Eval(interp,"f");\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_Eval(interp,"h");\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\slablTk,\sbeing\solder\sthan\sNRE,\sonly\scalls\sthe\sstring-based\sAPI;\sit\salso\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 login ferrieux
J mimetype text/plain
K 4955f5d8a4dce006e063f924bc9709f7850ecb6a
U ferrieux
Z 6c2cc0dfa2368bd778082f0038de1007