.
D 2002-01-08T17:51:08
J assignee msofer
J cmimetype text/plain
J comment \nIn\sdoc/StringObj.3,\sthe\sdocs\sfor\sTcl_GetString\nand\sTcl_GetStringFromObj\ssay:\n\n\sTcl_GetStringFromObj\sand\sTcl_GetString\sreturn\san\n\sobject's\sstring\srepresentation.\s...\sThe\sstorage\n\sreferenced\sby\sthe\sreturned\s\sbyte\spointer\sis\sowned\n\sby\sthe\sobject\smanager\sand\sshould\snot\sbe\smodified\n\sby\sthe\scaller.\s\s...\n\nIf\sit\sis\strue\sthat\sthe\scaller\sshould\snot\smodify\sthe\nstorage\sreferenced\sby\sthe\sreturned\spointer,\sthen\nthese\sroutines\sshould\sreturn\sa\s(CONST\schar\s*)\sso\nthat\sthe\sreturn\stype\senforces\sthe\sdocumented\nrequirement.\n\nHowever,\sthere\sare\smany\splaces\swithin\sTcl\sand\npopular\sextensions\ssuch\sas\sTk\swhere\sthe\sreturned\nvalue\sis\sstored\sin\sa\s(char\s*)\svariable,\sand\ssome\nplaces\swhere\sthe\sreferenced\sstorage\sis\smodified\ndirectly,\swhen\sit\sis\sknown\sthat\sit\sis\ssafe\sto\sdo\nso\swithin\sthe\srules\sof\sTcl's\scopy-on-write\srules\nfor\sTcl_Obj's.\n\nOne\schoice\sor\sthe\sother\sshould\sbe\smade.\s\sIt\sseems\nlikely\sthat\sthe\sdocumentation\sshould\sbe\schanged\sto\nnote\sthe\sconditions\swhere\sit\sis\ssafe\sfor\sthe\scaller\nto\smodify\sthe\sinternal\sstorage\sof\sa\sTcl_Obj\sreferenced\nby\sthe\sreturned\spointer.
J foundin obsolete:\s8.4a4
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 10.\sObjects
J title Tcl_GetString*\sdoc\sinconsistency
J type Bug
K 500930ffffffffffffffffffffffffffffffffff
U dgp
Z d775fb8ce38b7403dbab609120920131