Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Depth first search

From: g:santilli:tiscalinet:it at: 6-Dec-2001 19:17

Nate Haggard wrote:
> the giant block to every recursive call to a function. **Isn't there any way > to pass a reference to a data structure that will be modified instead of > copying it every time and then returning a new structure?**
A block is always passed "by reference" to functions (unless you copy it explicitly). You're probably copying it around somewhere else, maybe because you are using some function that does an implicit copy on the block. HTH, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/