Skip to content
Tcl Source Code Artifact [be4ee84e3b]
Login

Artifact [be4ee84e3b]

Artifact be4ee84e3b2522068fd55dc57f5b59e159bf26fe:

Ticket change [be4ee84e3b] - Ticket [520304ffffffffff|520304ffff] <i>Tcl_GetIndexFromObjStruct signature</i> status still Open with 4 other changes by nijtmans on 2002-02-21 22:31:47.
D 2002-02-21T22:31:47
J icomment Logged\sIn:\sYES\s\nuser_id=61031\n\nOne\sof\sthe\sreasons\sfor\sTIP\s27\swas\sto\sbe\sable\sto\suse\sthe\sTcl\nlibrary\sin\sC++\scode,\seven\sif\sinput\sparameters\swere\sdeclared\nconst.\sSo,\swhat\sif\swe\suse\s"static\sconst\sstruct\ssubstOption"\nin\sstead\sof\s"static\sstruct\ssubstOption".\sThe\sexample\scode\sby\nJou\sstill\sthen\sworks\swithout\sany\stype-cast.\n\nIn\sthat\slight,\sI\swould\sprefer\sto\suse\s(const\svoid\s*)\sas\sthe\nsecond\sparameter\sof\sTcl_GetIndexFromObjStruct,\sand\sthat's\nwhat\sit\sreally\sis:\sa\sconst\spointer\sto\san\sunknown\sstructure.\nThen\sthe\s(SOME_CAST)\sin\sJou's\sexample\scode\scan\ssimply\sbe\nleft\sout,\sboth\sin\sC\sand\sC++\scode.\n\nIs\severybody\shappy\swith\sthat\salternative?\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 520304ffffffffffffffffffffffffffffffffff
U nijtmans
Z b1dec39bf8e8aceff003ba29df1ef261