Posted to tcl by kbk at Wed Oct 22 17:18:23 GMT 2008view pretty
oo::class create a { constructor {} {} } oo::class create b { superclass a constructor {} {next} } b create c ---- no next constructor implementation while executing "next" (class "::b" constructor line 1) invoked from within "b create c" (file "/home/kennykb/tmp/oops" line 9)
Comments
Posted by dkf at Thu Oct 23 06:09:31 GMT 2008 [text] [code]
Bleah, you've run afoul of the "delete a constructor" code.
Posted by dkf at Thu Oct 23 11:16:30 GMT 2008 [text] [code]
And this is how it is documented to behave. See the final sentence of the bit on constructors at http://www.tcl.tk/man/tcl8.6/TclCmd/define.htm#M6