Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: how to bind to a local variable

From: henrikmk:gma:il at: 10-Oct-2008 17:46

On Fri, Oct 10, 2008 at 5:30 PM, Anton Rolls <anton-wilddsl.net.au> 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