[Xotcl] alloc error
Uwe Zdun
uwe.zdun at wu-wien.ac.at
Thu Sep 2 11:43:31 CEST 2004
Hi Michael,
the problem is part of the new namespace treatment. I've fixed this problem
and will send you the updated .tar.gz in a separate email. Anyone else
who has this problem
can get the fixed version from me. the fix will also make its way into
the next release.
Uwe
michael.heca at email.cz wrote:
>Hi,
>
>I found error in running XOTclIDE with new xotcl from version 1.3.0.
>
>Error is raised by similar code:
>---------------------------------------------
>#!/usr/bin/tclsh
>
>package require XOTcl
>namespace import ::xotcl::*
>
>Class NS
>Class NS::Main
>
>NS::Main proc m1 {} {
> my m2
>}
>
>NS::Main proc m2 {} {
> namespace eval :: Object crash
>}
>
>NS::Main m1
>---------------------------------------------
>Error is:
>---------------------------------------------
>couldn't find result of alloc
> ::xotcl::Object ::xotcl::Class->create
> ::xotcl::Object ::xotcl::Class->unknown
> invoked from within
>"Object crash"
> (in namespace eval "::" script line 1)
> invoked from within
>"namespace eval :: Object crash"
> (procedure "m2" line 3)
> ::NS::Main->m2
> invoked from within
>"my m2"
> (procedure "m1" line 3)
> ::NS::Main->m1
> invoked from within
>"NS::Main m1"
> (file "T:\home\heca\test\xotcl\e130.tcl" line 18)
>---------------------------------------------
>
>If i directly call NS::Main m2, everything is ok.
>
>It is xotcl error or problem is in this code?
>
>
>Michael Heca
>
>
>
>_______________________________________________
>Xotcl mailing list - Xotcl at alice.wu-wien.ac.at
>http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
>
>
--
Uwe Zdun
Department of Information Systems, Vienna University of Economics
Phone: +43 1 313 36 4796, Fax: +43 1 313 36 746
zdun at acm.org, uwe.zdun at wu-wien.ac.at
More information about the Xotcl
mailing list