.
D 2010-02-15T15:56:49
J assignee dkf
J cmimetype text/plain
J comment A\sposting\sby\sMartin\sLembourg\sin\sc.l.t\sleads\sto\sthe\sfollowing\squestion\s-\show\sdoes\sone\simplement\sthe\sfollowing\sscenario:\sTwo\sindependent\sclasses\sA\sand\sB\sand\sa\sclass\sC\sthat\sderives\sfrom\sboth\sof\sthem.\sI\swant\sto\sbe\sable\screate\sobjects\sof\seach\sof\sthese\sclasses.\sWhen\sI\screate\san\sobject\sof\sclass\sC,\sconstructors\sfor\sboth\sA\sand\sB\smust\sbe\scalled.\n\nThe\sissue\sis\sthat\s(\sassuming\sthe\sstatement\s"superclass\sA\sB"\sin\sC's\sdefinition),\sif\sA's\sconstructor\shas\sa\scommand\s"next",\sthe\sstatement\s"A\screate\sfoo"\sraises\san\serror\s"no\snext\sconstructor\simplementation".\sIf\swe\sremove\sthe\s"next"\scommand\sfrom\sA's\sconstructor,\sthen\s"A\screate\sfoo"\sworks\sbut\sthen\swhen\sdoing\s"C\screate\sbar",\sthe\sconstructor\sfor\sB\sdoes\snot\sget\scalled\s(presumably\sbecause\sA's\sconstructor\sno\slonger\shas\sa\snext\sstatement).\n\nSo\show\sdoes\sone\swrite\scode\sto\smeet\sthe\sabove\srequirements\s?\n\n(tested\swith\sCVS\sHEAD\sas\sof\sFeb\s15\s2010)\n\n/Ashok
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter apnadkarni
J subsystem 35.\sTclOO\sPackage
J title Constructor\scall\schain\sconfiguration
J type Bug
K 2952145fffffffffffffffffffffffffffffffff
U apnadkarni
Z aa8352a0f5681aee268ba1cc6524320a