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

[REBOL] Re: Trying to compose a block out of global and local bindings

From: alex:pini:mclink:it at: 8-Sep-2000 0:05

>- Open Your Mind -<
Quoting from [princepawn--lycos--com's] message (07-Sep-00 22:02:43). p>>> letter2: func [b /local name] [foreach n ["sally" "sue"][ name: n print reform reduce b] ] p> p>>> form p> == ["hi" name "welcome back"] p> p>>> name p> == "bob" p> p>>> letter2 form p> hi bob welcome back p> hi bob welcome back p> p> ... the only problem is I was hoping that the loop values in letter2 would take precedence over the globally bound value of name and allow me to create a form letter of sorts. p> p> Could anyone help with this please? letter2: func [b /local name] [foreach n ["sally" "sue"][ name: n print bind b 'name] ] Note that I don't really believe I've understood this myself. :-9 Also note you've just redefined the *form* native function... Alessandro Pini ([alex--pini--mclink--it]) I'm just the... *shadow* of my former self. (Morden)