Laurent
> this is probably a rookie error but playing with the load function I noticed
> that when doing either of
I don't know why your code isn't woking, though it seems to be choking on the
script command. But 'Load is not a good way to capture untrusted strings.
Try these for example:
test: load " rebol [quit] "
;; will execute the line and exit the console
test: load/all " rebol [quit] "
;; doesn't have that problem, but
test: load/all "bad . * ^ & ("
;; fails as load needs to find something that makes a valid rebol block, with
valid rebol words.
Even if you trust the string. Load & load/all will eat up system/words space.
to-block is an alternative.
But much safer is:
test: read http://www.google.fr
write %test.html test
or
test: read/lines http://www.google.fr
write/lines %test.html test
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.