> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 12, 1999 4:01 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] compose?? Re:
> Almost there, you're just using square brackets"[" instead of
> parens "("
>
> test: "Hi"
> == "Hi"
> >> bla: "There"
> == "There"
> >> compose [(test) (bla) bla (test)]
> == ["Hi" "There" bla "Hi"]
>
> Without deep
> compose [(test) [(bla)] (bla) bla (test)]
> == ["Hi" [(bla)] "There" bla "Hi"]
> With deep
> >> compose/deep [(test) [(bla)] (bla) bla (test)]
> == ["Hi" ["There"] "There" bla "Hi"]
> >>
Hi, but this doesn't make sense IMO. This implies that the content is a
defined word (otherwise it can't be evaluated). But I use blocks to put
undefined words into them too.
What I would like to have is a compose where it checks if a word inside the
flattened block is defined, if so evaluate it, otherwise don't touch it.
Sometimes, I can't predict which words are defined and which are not.
Robert M. Muench, Karlsruhe, Germany
==> ask for PGP public-key <==
When do you want to reboot today?
Use the free portable GUI Library
OpenAmulet from http://www.openip.org