[REBOL] Re: Static Variable Inside a Function
From: rotenca:telvia:it at: 2-Dec-2002 19:21
Hi Philippe> Is there a way to have a Static Variable' C-like inside a function to count > the number of time a function is called ?my-func: context [num: 0 self: func [][print num: num + 1]] or my-func: use [num][num: 0 func [][print num: num + 1]] or my-func: do has [num][num: 0 func[][print num: num + 1]] --- Ciao Romano