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

[REBOL] Re: CORE experimental 2.4.39

From: whip:cs:unm at: 23-Nov-2000 5:44

Howdy, Gabriele:
> [jeff--rebol--net] wrote: >> Functions in the newest experimental do not exhibit indefinite >> extent. > > You mean, using recursion?
In general, like: f: func [/x][x: random 10 'x] b: [] loop 10 [append b w: f probe get w] reduce b You wind up with all the same number in the block, though 'x in f's context had been 10 different random numbers.
> Well, I'm not surprised about this, and > I think this behaviour should not be changed. It's so simple and > fast as it is now... creating a whole new context for each function > call isn't a good idea IMHO.
Right-o. The idea tossed around has been that functions can be saved explicitly with the function attribute: [save]. -jeff