On Fri, Oct 10, 2008 at 5:30 PM, Anton Rolls <[EMAIL PROTECTED]> wrote:

> Try this on:
>
> rep-vars: func [str known-word /local var beg end] [
>     parse str [
>         some [
>             to ":" beg: ":" copy var to ":" ":" end:

Anton, what's the difference between this:

>                 var: first bind reduce [to-word var] known-word

and this:

                   var: bind to-word var known-word

The last one seems to work fine for me.

>                 change/part beg get var end
>             )
>         ]
>         to end
>     ]
> ]
>
> new-func: func [/local lvar lstr] [
>        lvar: "locally"
>        lstr: "a var used :lvar:"
>        rep-vars lstr 'lvar
>        lstr
> ]
>
> new-func
>
>
> Anton.
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>



-- 
Regards,
Henrik Mikael Kristensen
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to