Skip to content
Tcl Source Code Artifact [8b7deb8b4e]
Login

Artifact [8b7deb8b4e]

Artifact 8b7deb8b4e99d7de5236cee7c6f0c70436cff32059a90f2a91872a013667ee09:

Ticket change [8b7deb8b4e] - Ticket [b5bd08df8d61b4ea|b5bd08df8d] <i>The &quot;int&quot; type registration should be restored.</i> status still Open with 3 other changes by jan.nijtmans on 2022-11-17 20:16:46.
D 2022-11-17T20:16:46.596
J icomment Indeed,\sI\salso\squestion\swhy\s*any*\stype\sshould\sbe\sregistered\sat\sall.\sFor\sint's\sand\sbignum's\sthere's\sa\sbetter\ssolution\snow:\sTcl_GetNumberFromObj()\s(TIP\s#638).\sThis\sfunction\scan\sdetermine\swhether\sa\sTcl_Obj\sis\san\sinteger\sor\sa\sbignum\swithout\sshimmering.\sIn\smy\sopinion,\sthe\sbest\sway\sfor\sTcl\s9.0\sis\s-\sindeed\s-\sremove\sthe\sregistration,\sso\sextensions\swill\sstart\susing\sTcl_GetNumberFromObj().\sProblem\ssolved.\r\n\r\nFor\sTcl\s8.7,\sthe\sregistration\sfor\s"int"\sis\sonly\sa\scompatibility\sTcl_ObjType.\sAny\soperation\son\sit\swill\sshimmer\sthe\s"int"\sto\sa\s"wideInt",\sso\sany\scode\susing\sTcl_GetObjType("int")\swill\sbasically\snot\swork\sas\sexpected\sanyway.\sDoes\sit\shurt?\sNot\sreally,\sbecause\sthis\sfunctionality\sis\sonly\sused\sas\soptimization,\sthis\soptimization\swill\sjust\sdo\snothing\sin\sTcl\s8.7\sany\smore.\sIf\sextension\sstart\susing\sTcl_GetNumberFromObj(),\sthe\soptimization\swill\sstart\sworking\sagain.\r\n\r\nThe\sreason\swhy\sother\sTcl_ObjTypes\sare\sstill\sregistered\sis\ssimply\sbecause\sthere\sis\sno\sgood\salternative\syet.\sList's\scan\seasily\sshimmer\sto\sDicts's,\sso\s-\seventually\s-\sthere\scould\sbe\sa\sTcl_GetListOrDictFromObj()\shelping\sin\sthat.\r\n\r\nHope\sthis\sclarifies\sthe\ssituation\sa\slittle.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
U jan.nijtmans
Z 675aac7c096b95f46d9b1f603fa877a1