[REBOL] Rebol Challenge was: A collection of garbage
From: Al::Bri::xtra::co::nz at: 10-Jul-2003 17:59
Carl wrote:
> foo: has [file] [
> file: read %large-file.txt
> print length? file
> file: none
> ]
Let's assume that the function was like:
foo: has [file] [
file: read %large-file.txt
print length? file
file
]
How would one arrange to set the value of 'file to none, while still being
able to return the contents of %large-file.txt ? And do it "nicely"? :)
Andrew J Martin
ICQ: 26227169 http://www.rebol.it/Valley/ http://Valley.150m.com/