[REBOL] Re: Rebol Challenge was: A collection of garbage
From: g:santilli:tiscalinet:it at: 10-Jul-2003 12:06
Hi Andrew,
On Thursday, July 10, 2003, 11:50:43 AM, you wrote:
AJM> At the moment, Gabiele is in the lead...
Other possibilities are:
foo: has [file] [
file: read %large-file.txt
print length? file
get in context [
file': file
set 'file none
] 'file'
]
foo: func [/really /local file] [
either really [
file: read %large-file.txt
print length? file
file
] [
foo/really
]
]
foo: does [
do has [file] [
file: read %large-file.txt
print length? file
file
]
]
foo: does [
use [file] copy [
file: read %large-file.txt
print length? file
file
]
]
etc... What did I win? ;-)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r