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

[REBOL] problems with local vars??? Re:(6)

From: al:bri:xtra at: 19-Aug-2000 9:58

Brett wrote:
> Rebol functions are a dialect which is interpreted...
Yes. Rebol functions are merely words and blocks. For example: [ Rebol[] ArgBlock: [Arg] BodyBlock: [print Arg] append/only ArgBlock [string!] MyFunc: func ArgBlock BodyBlock MyFunc "This is my Arg." ] See that 'ArgBlock and 'BodyBlock are just Rebol blocks. Look at the reflection:
>> source MyFunc
MyFunc: func [Arg [string!]][print Arg] It really is as simple as that. I hope that helps. Andrew Martin See Rebol, do Rebol, know Rebol... ICQ: 26227169