View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] error message lost when calling method during object creation

From: Koen Danckaert <koen_at_retarget.com>
Date: Wed, 21 Mar 2007 12:15:17 +0100

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