[REBOL] problems with local vars??? Re:(6)
From: al:bri:xtra at: 19-Aug-2000 10:27
> 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
> 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
>> second :MyFunc
== [print Arg]
>> third :MyFunc
== [Arg [string!]]
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!