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 10:27

Galt wrote:
> why do you say that rebol functions are a kind of rebol dialect?
Because they are a kind of rebol dialect. They are blocks with special meaning.
> I thought they were more of a built-in type function! There are some
special things that happen in a function that are all about binding params and locals, but I would be surprised if functions worked internally like the dialect that is in parse or view. If it works that way, it's a sheer revelation to me. In fact, how could you define a dialect without referring to other functions? Is that a chicken and egg kind of thing?
>> first :MyFunc
== [Arg]
>> second :MyFunc
== [print Arg]
>> third :MyFunc
== [Arg [string!]] The: make function! that appears in the source for 'func and 'function is where any dialect pre-processing occurs, and MyFunc is where the function dialect gets executed. This is where the "magic" happens. 'Func, 'function and 'does are simply built on top of these. I hope that helps! Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/