Skip to content
Tcl Source Code Artifact [ed8e1316c9]
Login

Artifact [ed8e1316c9]

Artifact ed8e1316c9a997e4b6cfb480768517f562b8fb34:

Ticket change [ed8e1316c9] - New ticket [1890579fffffffff|1890579fff] <i>CMethod API for TclOO methods (similar to ProcedureMethod)</i>. by wiede on 2008-02-10 12:37:12.
D 2008-02-10T12:37:12
J assignee dkf
J cmimetype text/plain
J comment For\sitcln-ng\sand\smaybe\salso\sfor\sothers\sit\swould\sbe\snice\sto\sallow\sC-implemented\sfunctions\sto\sbe\sused\sa\smethod\simplementation.\n\nRight\snow\sthere\sis\sthe\sProcedureMethod\sinterface\s(besides\sothers)\sfor\sadding\smethods\sto\sTclOO\sobjects\sand\sclasses.\sI\sthink\sit\swould\sbe\svery\shelpful\sto\shave\sa\ssimilar\sCMethod\sinterface.\n\nThe\sinterface\sshould\sbe\svery\ssimilar\sto\sProcedure\sMethod\sin\sthat\sinstead\sof\sTcl_Obj\s*bodyObj\sthere\sis\sa\sTcl_ObjCmdProc\s*cMethod\sas\sa\sparameter\sto\sthe\sfunctions\sof\sthat\sAPI.\sThe\srest\sof\sall\sthe\snecessary\sAPI\sfunctions\sshould\sbe\sidentical\s(very\ssimilar)\sto\sthe\sProcedureMethod\sAPI\sfunctions.\n\nInstead\sof\sTclProcCompileProc(...)\sand\sTclObjInterpProcCore(...)there\sis\sa\scall\sto\s(cmPtr->cMethodPtr)(...)\s\n\nFor\sthe\sscript\slevel\sI\sthink\sit\sis\snot\smandatory\sto\shave\sinterfaces.\n\nJust\sfor\sinfo:\nItcl-ng\suses\sa\sRegister_CProc\sAPI\sto\smake\sthe\sregistration\sof\sfunctions\swith\ssignature\sTcl_ObjCmdProc\savailable.\sAnd\sat\sthe\sscript\slevel\sthere\sis\sa\scmethod\sadditional\sinterface\sfor\sconnecting\sscript\slevel\smethod\snames\swith\sregistered\sC-level\smethods.\s\n\nI\shave\sa\sprototype\simplementation\s(in\sthe\sitcl-ng\ssources)\srunning,\swhich\shas\sa\slot\sof\sredundant\sduplicate\scode\sfrom\sfile\stclOOMethod.c.\sSo\sI\sthink\sthat\spart\swould\sbetter\sfit\sthere.\n\nDonal,\sas\sI\sknow\syou\slike\sto\simplement\sit\syour\sway,\sI\sthink\sthe\sdescription\shere\sis\senough\sfor\syou,\sotherwise\splease\slet\sme\sknow.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter wiede
J subsystem 35.\sTclOO\sPackage
J title CMethod\sAPI\sfor\sTclOO\smethods\s(similar\sto\sProcedureMethod)
J type RFE
K 1890579fffffffffffffffffffffffffffffffff
U wiede
Z e0c6530b996f875468a0df74e31a3374