.
D 2022-11-17T18:48:44.951
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment TIP\s#484\sremoved\sthe\sregistration\sfor\sTcl_ObjType\s"int".\s\sThe\sTIP\sproposes\smerging\sthe\s"int"\sand\s"wideint"\stypes\sinto\sa\ssingle\s64-bit\sint\svalue.\s\sThe\schange\sis\sfundamentally\sa\schange\sin\sthe\sinternal\srep,\scollapsing\sthe\s2\sinteger\stypes\sinto\s1.\s\sThe\sjustification\sis\sbasically\sa\ssimplification\sof\sthe\ssystem\swhen\sdealing\swith\sinteger\svalues.\r\n\r\nThe\sTIP\sthen\sgoes\son\sto\sdescribe\sthe\sremove\sof\sthe\s"int"\sand\s"wideint"\stype\sregistractions,\swithout\sreally\sexplaining\swhy.\sI\scan\sonly\sassume\sthat\sthe\sreasoning\swas\sbased\son\sthe\sinternal\srep\schanges,\sand\sfears\sthat\sexternal\scode\scould\sfail\swhen\sblindly\sassuming\sthe\s"int"\sinternal\srep.\s\sIf\sthat\sis\sthe\scase,\sthen\sthe\soffered\swork\sarounds\sdon't\ssolve\sthe\sissue,\sother\sthan\sforcing\sdevelopers\sto\slook\sat\stheir\scode.\s\sIf\san\sinternal\srep\schange\sis\sall\sthat\sis\srequired\sto\snegate\sthe\sregistration\sof\sa\stype,\sthen\swhy\swasn't\sthe\s"list"\stype\sregistration\sremoved\swhen\sit's\sinternal\srep\swas\schanged\swith\sTIP\s#625?\s\sTaking\sone\sstep\sback,\swhat\sis\sthe\spoint\sof\sthe\sregistration\smechanism?\s\sWhy\sdoes\sit\sexist?\s\sWhat\sare\sthe\srules\sfor\sit?\r\n\r\nLooking\sat\s2\sof\sthe\scited\sextensions\sthat\suse\sTcl_GetObjType("int"),\sthey\sare\sboth\semployed\sfor\sthe\spurpose\sof\svalue\sclassification\sonly.\s\sNever\sis\sthe\sinternal\srep\saccessed\sdirectly.\s\sLooking\sat\sother\scases\sfor\sTcl_GetObjType(),\sthey\sare\sused\sto\saccess\sthe\stype's\sSet*FromAny,\sor\sUpdateString\sfunctions.\s\sTo\sgeneralize,\sThe\sTcl_ObjType\sis\sa\s"class",\sand\sthe\s2\sprominent\suse\scases\sare\s"is\sa"\sand\s"method"\scalls.\sI'm\snot\saware\sof\sany\scase\swhere\sinternal\srep\sinspection\sor\smanipulation\sis\sdesired\sor\snecessary.\r\n\r\nMy\srequest\sis\sthat\sthe\sregistration\sof\s"int"\sbe\sput\sback.\s\sIf,\sfor\ssome\sreason,\sthere\sis\sno\sconsensus\son\sthis,\sthen\sI\sseriously\squestion\swhy\s*any*\stype\sshould\sbe\sregistered\sat\sall.
J foundin 8.7,\s9.0a4
J is_private 0
J login griffin
J priority 5\sMedium
J private_contact 21780c4e03cc5884af69addd6efc1b71c50d9818
J resolution None
J severity Severe
J status Open
J submitter griffin
J subsystem 10.\sObjects
J title The\s"int"\stype\sregistration\sshould\sbe\srestored.
J type Bug
K b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
U griffin
Z 1b4f5ee31967ed72082146b556051f0c