.
D 2004-02-07T12:10:52
J assignee dgp
J closedate 2004-02-07T05:10:52
J closer dgp
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nSorry,\sbut\sthe\sTcl\sinterface\nwas\sCONST-ified\sas\smuch\sas\npossible\sfor\sTcl\s8.4.\s\n\nIn\sparticular,\sthe\ssecond\sargument\nof\sTcl_SetResult()\scan't\schange\sfrom\ntype\s(char\s*)\sto\stype\s(CONST\schar\s*)\nbecause\swhen\sthe\sthird\sargument\sis\nan\sactual\sTcl_FreeProc,\sthe\ssecond\nargument\sreally\sdoes\shave\sto\sbe\na\swritable\sstring\sto\smatch\sthe\nTcl_FreeProc\ssignature.\n\nWhen\sthe\sthird\sargument\sis\sTCL_VOLATILE,\nyou\sare\scorrect\sthat\sit\sreally\sis\ssafe\nto\spass\sa\s(CONST\schar\s*)\sin.\s\sKnowing\nthat,\syou\scan\sfeel\sfree\sto\sadd\sa\nconst\scast\sin\sthose\sfunction\scalls\sto\nsilence\sthe\scompiler\swarnings.\n\nBetter\syet\smight\sbe\sto\sjust\scall\n\n\s\sTcl_SetObjResult(interp,\n\s\s\s\s\s\sTcl_NewStringObj("any\sstring",\s-1));\n\nand\smove\sinto\sthe\sbrave\sworld\sof\nprogramming\sto\sthe\sTcl\s8\sinterface.\s\s:-)\n\n\n\n
J login dgp
J mimetype text/plain
J resolution Wont\sFix
J status Closed
J subsystem 45.\sParsing\sand\sEval
J username dgp
K 892037ffffffffffffffffffffffffffffffffff
U dgp
Z 2b875e4d5bc3cd923a7b006c70d84ba9