Re: My own control structures are slow
- From: ulrich@xxxxxxxxxxx (Ulrich Schöbel)
- Date: 30 Sep 2005 10:14:43 GMT
In article <dhiusu$nrl$1@xxxxxxxxxxxxxxxxxxxxxxxxx>,
Christian Gollwitzer <auriocus@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
>
> set sum 20
> info locals
>
> I get an empty response. Maybe this is a bug in my tcl 8.4.9? info
> locals sems to work only inside a proc like
>
> proc test {} {
> set sum 7
> info locals
> }
>
> which gives me "sum" :-( The cmdline in tkcon is executed with
> "uplevel #0"
> Any ideas?
>
Hi Christian,
set sum 20
sets a _global_ variable, whereas your second example
sets a local variable.
Verify it with info globals.
Best regards
Ulrich
.
- Follow-Ups:
- Re: My own control structures are slow
- From: Christian Gollwitzer
- Re: My own control structures are slow
- References:
- My own control structures are slow
- From: Christian Gollwitzer
- Re: My own control structures are slow
- From: Donald Arseneau
- Re: My own control structures are slow
- From: Christian Gollwitzer
- My own control structures are slow
- Prev by Date: Re: Tk Unicode is slow
- Next by Date: Re: My own control structures are slow
- Previous by thread: Re: My own control structures are slow
- Next by thread: Re: My own control structures are slow
- Index(es):