.
D 2008-01-14T12:25:59
J assignee dkf
J cmimetype text/plain
J comment This\srequest\sis\sjust\ssome\sthoughts\sI\shad\sfor\sbeeing\sable\sto\sspeed\sup\sitcl-ng,\sso\smaybe\sthe\ssolution\sis\scompletely\sdifferent\sthan\sI\sam\ssuggesting.\sI\shave\snot\syet\simplemented/tried\sthe\sstuff\sdescribed\shere.\n\nThe\saccess\schecking\srules\sfor\sitcl\sfunctions\sare\sas\sfollows\s(from\sthe\sItcl\ssource\scode):\n\nItcl_CanAccess()\nChecks\sto\ssee\sif\sa\sclass\smember\scan\sbe\saccessed\sfrom\sa\sparticular\snamespace\scontext.\s\sPublic\sthings\scan\salways\sbe\saccessed.\s\sProtected\sthings\scan\sbe\saccessed\sif\sthe\s"from"\snamespace\sappears\sin\sthe\sinheritance\shierarchy\sof\sthe\sclass\snamespace.\s\sPrivate\sthings\scan\sbe\saccessed\sonly\sif\sthe\s"from"\snamespace\sis\sthe\ssame\sas\sthe\sclass\sthat\scontains\sthem.\n\nReturns\s1/0\sindicating\strue/false.\n\nItcl_CanAccessFunc()\n\nChecks\sto\ssee\sif\sa\smember\sfunction\swith\sthe\sspecified\sprotection\slevel\scan\sbe\saccessed\sfrom\sa\sparticular\snamespace\scontext.\s\sThis\sfollows\sthe\ssame\srules\senforced\sby\sItcl_CanAccess,\sbut\sadds\sone\sspecial\scase:\s\sIf\sthe\sfunction\sis\sa\sprotected\smethod,\sand\sif\sthe\scurrent\scontext\sis\sa\sbase\sclass\sthat\shas\sthe\ssame\smethod,\sthen\saccess\sis\sallowed.\n\nReturns\s1/0\sindicating\strue/false.\n\n\nAs\sI\sdon't\sthink\sit\smakes\ssense\sto\sdirectly\simplement\sthese\srules\sin\stclOOCall\sAddMethodToCallChain,\sI\sthink\sit\swould\sbe\sbetter\sto\shave\san\soptional\scallback\s(on\sa\sper\sclass\sbase)\sto\sdo\sthe\sadditional\schecking.\n\nThis\swould\shelp\sto\savoid\sadditional\scode\sand\slater\schecking\swhen\scalling\sthe\sfunction\sin\sitcl\s(as\sit\sis\sdone\sat\sthe\smoment)
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 additional\soptional\scallback\sfor\saccess\schecking
J type RFE
K 1871041fffffffffffffffffffffffffffffffff
U wiede
Z cce49792af37d1da187ba4d4003cceaa