Am Dienstag 23 März 2010 12:04:58 schrieb Reinhard Max:
> Hi,
>
> On Fri, 19 Mar 2010 at 09:08, Arnulf Wiedemann wrote:
> > I have integrated your patches and fixed the "info complete"
> > problem.
>
> I can confirm that these are fixed in the latest tarball, but [info]
> is still not working as expected in the latest tarball.
>
> Object variables are no longer visible as local variables to [info
> exists] inside a method of an inherited class:
>
> --- snip ---
> package require Itcl
> itcl::class Base {}
> itcl::class foo {
> inherit Base
> variable x 1
> public method bar {} {
> puts $x:[info exists x]:[info exists [itcl::scope x]]
> }
> }
> foo myfoo
> myfoo bar
> --- snap ---
>
that is a bigger part of work, as I right now use the Tcl info exists command.
For fixing that it is necessary, that I reimplement info exists for itcl,
using additional code to fix the described problem. I will see when I have
time to do that. I think the problem has to do with the hiding of variables
and use of variable resolvers in itcl. The old version did that in a different
way.
Arnulf.
> This script outputs 1:0:1 when run as is and 1:1:1 with the inherit
> command removed. Itcl 3.4 returns 1:1:1 in both cases.
>
>
> cu
> Reinhard
>
|