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

[REBOL] word Re:(2)

From: fantam:mailandnews at: 13-Aug-2000 19:00

Thanks for your reply, Tim. Your solution seems to me classical, C-like. I was trying to think in Rebol terms (contexts) and, like you suggested, let's hope advanced users will propose more Rebol-like approaches for this very simple and common case. Anyway, I hope I make some sense. daniel tjwc> Hi Fantam:
>> I am confused. Consider this small script: >> >>REBOL [] >> >>block: ["a" "b" "c"] >>code: [print member] >>foreach member block [do code]
tjwc> but this works: tjwc> block: ["a" "b" "c"] tjwc> mcode: func [member][print member] tjwc> m: "x" tjwc> foreach member block [m: member mcode m] tjwc> I believe that rebol enforces 'member as having a special tjwc> scope. tjwc> Your question is worthy of more discussion: perhaps some tjwc> of the more experienced members would like to chime in on tjwc> this... tjwc> -Tim
>>Upon execution, I get : >> >>** Script Error: member has no value. >>** Where: print member >> >> >> >>I guess I have to use 'bind or 'use somewhere, but I'm not sure which >>and how. >> >>Thanks for your help >>-- >>Fantam
-- Fantam