[REBOL] Re: Limiting Serie sizes (native!)
From: carl:rebol at: 13-Aug-2003 19:16
It turns out that REBOL does limit series expansion to protect itself internally,
although not to the granular level that you suggest.
(Two weeks ago, I hit the limit for the first time ever with REBOL on one of our
net servers. It was loading a 500MB file on a regular basis (spam filter data file).
The LOAD happened so quickly that I had no idea the file was that large.)
It would be possible for there to be a way to limit a series on a per series
basis, although it is interesting to think about the methods of such a function --
in other words, you have to have a way to set, get, and change the limits on
a per series basis -- sort of like set-modes does for ports.
An example might be:
set-modes series [limit: 10000]
Of course, if we did that, then you might also want other controls for blocks,
like:
set-modes block [newlines: false]
which would remove the hidden newline markers from blocks (ie. what happens
on MOLDed LOADed blocks).
Am I right?
-Carl