Skip to content
Tcl Source Code Artifact [9226dd2f90]
Login

Artifact [9226dd2f90]

Artifact 9226dd2f90a00cd1aa8cd2f350292e2d75fb6078:

Ticket change [9226dd2f90] - New ticket [465213d1715f9e2c|465213d171] <i>Tcl_NewMethod() documentation error</i>. by dgp on 2015-06-19 15:54:10.
D 2015-06-19T15:54:10.472
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\sdocumentation\sfor\sTcl_NewMethod:\r\n\r\n\s\s\s\s\s\s\sTcl_Method\r\n\s\s\s\s\s\s\sTcl_NewMethod(interp,\sclass,\snameObj,\sisPublic,\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\smethodTypePtr,\sclientData)\r\n\r\n...\r\n\r\n\s\s\s\s\s\s\sint\sisPublic\s(in)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sA\sboolean\sflag\ssaying\s\swhether\s\sthe\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\smethod\sis\sto\sbe\sexported.\r\n\r\n\r\nseems\sto\sbe\smistaken.\r\n\r\nThe\simplementation\sof\sTcl_NewMethod()\scalls\sits\sthird\sargument\s"flags"\r\nand\sit\spulls\sfrom\s"flags"\sthe\sparticular\sbit\ssettings\sPUBLIC_METHOD\r\nand\sPRIVATE_METHOD\sfor\sstoring\sin\sthe\snew\sMethod\sstruct\s.\r\n\r\nThe\supshot\sis\sthat\spassing\sthe\svalues\s1\sor\s2\sor\s3\swhich\sas\sbooleans\r\nare\sall\sthe\ssame\s"true"\svalue,\sactually\swill\sresult\sin\sdifferent\r\nbehaviors,\ssome\spotentially\sseriously\sbroken.\r\n\r\nEither\sthe\sdocumented\sinterface\sor\sthe\simplementation\sshould\sbe\r\nchosen\sto\ssurvive,\swith\sthe\sother\sadjusted\sas\sneeded.\s\sIf\sthe\sinterface\r\nis\srevised,\sthe\sbit\sdefinitions\swill\sneed\sexporting.
J foundin trunk
J is_private 0
J login dgp
J priority 5\sMedium
J resolution None
J severity Important
J status Open
J submitter dgp
J subsystem 35.\sTclOO\sPackage
J title Tcl_NewMethod()\sdocumentation\serror
J type Bug
K 465213d1715f9e2c0eba602a7f802ec4ea11d246
U dgp
Z bc7f7344c63d8539392399dfbfce0926