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

[REBOL] Re: for bug?

From: g:santilli:tiscalinet:it at: 19-Jun-2002 12:34

Hi Joel, On Wednesday, June 19, 2002, 5:49:56 AM, you wrote: JN> 1) Integer ranges wider than the maximum integral value break JN> the computation of iteration count; with the existing FOR: LOOP only accepts integers... OTOH we could nest two LOOPs to have 64bit wide integer ranges. :) JN> 2) There's a bit more work needed in loop unrolling to prevent JN> edge-of-domain failure: Maybe we could add just some error handling... JN> 3) The "bit more work" to address tuple! values would have to JN> deal with calculating the "width" of a range of tuple values, JN> and the peculiar behavior of tuple arithmetic (perhaps to JN> correct it, at least for the purpose of NEWFOR!) I'll leave that to the reader as a useful exercise. ;-) JN> Thanks for the amazingly quick post! It was easy to do... :) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r