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

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

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Wed, 21 Mar 2007 12:25:18 +0100

Koen,
this should be fixed by the patch from january:

http://alice.wu-wien.ac.at/pipermail/xotcl/2007-January/005193.html

all the best
-gustaf

Koen Danckaert schrieb:
> 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
> _______________________________________________
> Xotcl mailing list
> Xotcl_at_alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl