"ts" <decoux / moulon.inra.fr> wrote :
>
>  Try with
>
> D> def counter
> D>   $number += 1
> D>   $label.configure('text', $number)
> D>   Tk.after(1,proc{counter})
>
>      Tk.after(1, method(:counter))
>
> D> end
>
>  To see if the result is better.
>
>  Add GC.start before Tk.after if you don't want to see the effect of the
GC

Guy, thanks for your response. Using method(:counter) is an improvement over
proc{counter}; it slows the flow, without actually stopping it. TkAfter is
still better. [note: is method(:func) always going to be better than
proc{func}?]

starting garbage collection manually with GC.start doesn't seem to make any
difference in this case.