[REBOL] Re: Binding problem with 'do
From: lmecir::mbox::vol::cz at: 1-Aug-2005 12:05
I think, that it is necessary to articulate the "rule of thumb"
regarding string execution:
*Do not transform Rebol code to string, if you are going to evaluate it*.
Let's have a look at the original code:
code: load rejoin["append output do-" type " name layout"]
?? code ;; see code "dump" below
do code
So, what is wrong about it? The wrong part is, that there is a
transformation of legal Rebol code [append output do-type name layout]
to string and back again, while the only thing that had to be
transformed was the do-type part and it had to be transformed *from*
string, i.e. in the opposite direction.
Is that understandable enough for less experienced readers?
-L