Skip to content
Tcl Source Code Artifact [f9965db6c0]
Login

Artifact [f9965db6c0]

Artifact f9965db6c0ee671855e8a831c8ab097dafa53a1232a3a83d36f240d375659e05:

Ticket change [f9965db6c0] - Ticket [b5bd08df8d61b4ea|b5bd08df8d] <i>The &quot;int&quot; type registration should be restored.</i> status still Open with 4 other changes by marc_culler on 2024-07-04 01:10:19.
D 2024-07-04T01:10:19.257
J icomment @jan:\sI\srewrote\spart\sof\s_tkinter.c\susing\sTcl_GetNumberFromObj()\sand\sit\r\nworked\sgreat.\s\sI\sagree\sthat\syou\scould\scall\sthis\sthe\s"correct"\sway.\s\sExcept\r\nfor\sone\sthing,\swhich\sI\sdon't\sunderstand.\s\sWhy\sdid\syou\sonly\sdo\spart\sof\sthe\sjob?\r\nWhy\saren't\sthere\sconstants\sTCL_STRING,\sTCL_LIST,\sTCL_DICT\setc,\sand\r\nwhy\sisn't\sthere\sa\sTcl_GetValueFromObj()\swhich\suses\sthose\sconstands?\r\n\r\nIt\sworks\sfine\sto\sreturn\sa\svoid*\spointer\sto\sthe\sinternal\sdata\sof\sthe\sobject\r\nand\sset\san\sinteger\svariable\sto\sindicate\swhat\sthe\sobject\stype\sis.\s\sA\sswitch\r\non\sthe\svalue\sof\sthat\sinteger\sis\sefficient\senough\s(even\sif\sit\smeans\stesting\s\r\ntwice)\sand\smakes\sfor\sclean\scode.\s\sThe\saddresses\sof\sthe\score\sTcl_ObjType\r\nstructs\scan\sbe\sprivate\sto\sthe\sTclObj.c\sfile,\swhich\sis\sappropriate.\r\n\r\nIf\sthere\swas\sa\sTcl_GetValueFromObj\sthen\sas\sfar\sas\sI\scan\stell\stkinter\r\nwould\shave\sno\sneed\sto\suse\stypePtrs,\sand\sno\sneed\sfor\stype\sregistration.
J login marc_culler
J mimetype text/plain
J username Marc\sCuller
K b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
U marc_culler
Z 3b8fbb83d22b231a735731a2d949f47b