[REBOL] Re: Using a Math oper. buried in a variable
From: anton:wilddsl:au at: 7-Apr-2009 3:46
Hi Scott,
These apparent inconsistencies are not as inconsistent
as they might seem.
First, with "^^", you found the escape character.
In any symbol set you will find "inconsistencies" around
the escape character.
What the above string represents is a single character ^.
It just appears in code that there are two.
The string you need to type can be found by doing this:
to-string first [^^]
but actually, now we remember that ^^ isn't the Rebol
power operator anyway! It's **. Oh well. :-)
Second, you can't inject parenthesis as if they're
words, because they're not words. They are Rebol
syntax at a more fundamental level than words.
(I think that's a correct way to explain it, anyway.)
If you want to create parens, then do it like this:
append copy () something
or
to-paren reduce [some stuff]
It's just the same with blocks and strings.
They are all series! delimiters. " [ ] ( )
You can make the delimiters into words, but then
how are you going to use them?
Regards,
Anton.
Wall, Scott wrote: