Skip to content
Tcl Source Code Artifact [b5f48cfa70]
Login

Artifact [b5f48cfa70]

Artifact b5f48cfa70c4170b97be8bcd25a3ac81c90884fc:

Ticket change [b5f48cfa70] - New ticket [218401ffffffffff|218401ffff] <i>Types without Info is a dreadful waste</i>. by nobody on 2000-10-26 00:57:08.
D 2000-10-26T00:57:08
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5294\sRFE\nVersion:\s8.3\nSubmitDate:\s'2000-04-28'\nLastModified:\s'2000-05-17'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sAll\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-05-17'\n\n\nName:\nGraham\sSwallow\n\nDesiredBehavior:\nWhat\sis\sthe\suse\sof\sdefining\syour\sown\stype,\sbut\snot\sbeing\sable\sto\nadd\syour\sown\sinformation,\sin\sthe\sobjects\stype\srecord?\nobj->typePtr->*\s\sshould\slook\slike\sthis\n\ntypedef\sstruct\sTcl_ObjType\s{\n\s\s\s\schar\s*name;\s\n\s\s\s\sTcl_FreeInternalRepProc\s*freeIntRepProc;\n\s\s\s\sTcl_DupInternalRepProc\s*dupIntRepProc;\n\s\s\s\sTcl_UpdateStringProc\s*updateStringProc;\n\s\s\s\sTcl_SetFromAnyProc\s*setFromAnyProc;\n//\sadd\sthese\nClientData\sExtnMgr;\s//\sMUST\sbe\sunique\spointer\nClientDataItem_Type_Info;\s//\sno\sfree\srequred\n}\sTcl_ObjType;\n\nBoth\smight\sbe\sNULL\sfor\score\scomponents,\sor\sextensions,\n\nExtnMgr\smust\sbe\sunique\s(or\snull),\sand\shas\sno\susefulness\sexcept\sfor\nif(\sExtnMgr\s==\sMyExtnMgr\s)\s\s{\n//\sits\sworth\slooking\sat\sthe\sItem_type_info->*\n//\sand\sthe\sformat\sthere\sis\s*my*\sformat\n}\n\nItem_type_Info\sbelongs\sto\smy\sextension\smanager,\sit\sis\sthe\suseful\spart.\nIt\sgives\sinfo\son\sa\sper-type\sbasis.\s\n\nWithout\sthis\sbeing\sa\spart\sof\sobj->typePtr,\sI\shave\sto\suse\ssome\sslow/clumsy\smechanism.\n\nChanges\sto\sthe\sTcl\sCore:\nredefine\sthat\sstruct\nand\sinit\sit\sNULL\sin\sRegisterObj\nadd\sRegisterObjWithoutClearingExtnFields\nplus\sfuture\s"RegisterObj"\swont\sclear\sfields\safter\s9.0\s\n\nExtnMgr\s"must\sbe"\sa\spointer\sso\sthat\sis\sis\sguaranteed\sto\sbe\sunique\s(or\snull)\nbut\sit\sremains\sas\sopaque\sClientData\sto\sall\sother\sextensions.\sNo\sdelete\srequired\s?\n\nGraham\n\n\n\nIt\swas\spointed\sout\sin\sdiscussion\son\sthe\snewsgroup\sthat\suse\sof\nextended\sobjects\sprovides\sthe\snecessary\sfunctionality:\n\s\shttp://x34.deja.com/=dnc/getdoc.xp?AN=616571207\s\n--\s05/17/2000\shobbs
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 10.\sObjects
J title Types\swithout\sInfo\sis\sa\sdreadful\swaste
J type Bug
K 218401ffffffffffffffffffffffffffffffffff
U nobody
Z a9267a4b6596ece2d3205e1a2b928531