Re: Recursion question?
- Posted by Tony Bucholtz <tony_bucholtz at HOTMAIL.COM> Dec 14, 2000
- 456 views
On Thu, 14 Dec 2000 19:38:01 +1100, Graeme <graemeburke at CROSSWINDS.NET> wrote: >> >>When a recusive function is used in Euphoria, are all the internal >>variables (including anything passed into the function) put in a stack of >>some kind? Ferinstance: > >Yes. >Private variables are the property of each instance of >a function and stay in memory until the termination of >that instance. (cool huh?;) > G'day all Thanks, Graeme. Does that mean that a recursive function with *lots* of big sequences and recursed *lots* of times will eat up heaps of memory? My poor old P166 16Mb beast goes from slow to s...l...o...w after looping around one of these things for a while. I guess running out of RAM will do that :) Regards Tony