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

[REBOL] Re: CORE experimental 2.4.39

From: lmecir:mbox:vol:cz at: 24-Nov-2000 3:36

Hi, Gabriele wrote:
> > [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. >
My research is showing me, that the opposite is correct: The "indefinite extent" functions' behaviour is simpler/more natural/more useful for a user, than the behaviour of its "definite extent" counterpart (that's probably the reason, why Carl introduced "indefinite extent" to Rebol), and, moreover, there *is* a way, how to make such functions faster, than the Rebol functions are nowadays. Regards Ladislav