: <i>Cannot remove all superclasses of a TclOO class</i> plus 8 other changes
by
.
D 2013-08-20T10:52:43.473
J closedate 2456524.95328094
J comment Hi,\r\n\r\nI\suse\sActiveState\sTcl\s8.6.0.0.295132\sBeta\s6.\r\n\r\nI\shave\sa\sclass\swith\sa\sstatic\smethod\sthat\schanges\sthe\slist\sof\sits\sbaseclasses:\r\n\r\nself\smethod\sDISABLE_SUPERCLASSES\s{}\s\\\r\n{\r\n\s\s\soo::define\sSNAPSHOT_ELEMENT\ssuperclass\s""\r\n}\r\nself\sexport\sDISABLE_SUPERCLASSES\r\n\r\nThis\syields\sthe\serror:\s"\sdoes\snot\srefer\sto\san\sobject".\sTclOO\sdoes\snot\saccept\sthe\sempty\sstring.\r\n\r\nI\smight\snot\suse\sthe\sright\stechnique\shere...\sBut\sis\sthere\sa\sway\sto\sremove\sall\ssuperclasses\sof\sa\sgiven\sclass?\r\n\r\nAs\sa\sworkaround,\sI\scan\screate\sa\sdummy\sclass\sand\smake\sit\sits\ssuperclass...\sOr\sI\scan\suse\soo::object\sas\sthe\sdummy\sbase\sclass.\r\n\r\nThanks,\r\nEtienne
J icomment Current\scode\snow\senforces\sthat\sthere\sis\s<i>always</i>\sa\ssuperclass\s(it\swas\spossible\sto\smake\sthis\snot\sbe\sthe\scase,\swhich\swas\sa\scatastrophic\sbug).
J login dkf
J mimetype text/html
J resolution Fixed
J severity Minor
J status Closed
J username dkf
K 3487424fffffffffffffffffffffffffffffffff
U dkf
Z d24aec8a323e289f03037234a3a42eab