[Xotcl] error message lost when calling method during object
creation
Koen Danckaert
koen at retarget.com
Wed Mar 21 12:15:17 CET 2007
Hi,
It seems that error messages generated during object creation get lost sometimes. An example (using XOTcl 1.5.3 and tcl8.4.12):
Define a class and a method foo with a typo in it:
% Class C
::C
% C instproc foo {} {puds foo}
When foo is called on an existing object, we get the right error message:
% C c
::c
% c foo
invalid command name "puds"
However when foo is called during object creation, the error message is lost:
% C d -foo
during '::d foo'
% set errorInfo
during '::d foo'
::d ::xotcl::Object->configure
::C ::xotcl::Class->create
::C ::xotcl::Class->unknown
invoked from within
"C d -foo"
Regards,
Koen
More information about the Xotcl
mailing list