[REBOL] Re: Block as parameter (version 2 !!)
From: al::bri::xtra::co::nz at: 18-Aug-2002 11:52
Philippe Oehler wrote:
> Finally i cannot pass a block as a parameter within a VID layout because
it decomposed into elements of the block instead of a block...
> So the result is that : the function is waiting on a block and the first
element passed is considered as a block..
Best fix at the moment is to change from this:
Note the addition of the square brackets "[" and "]".
When the latest version of Rebol/View is available, with 'compose/only (from
>> help compose
COMPOSE value /deep /only
Evaluates a block of expressions, only evaluating parens, and returns a
COMPOSE is a native value.
value -- Block to compose (Type: any)
/deep -- Compose nested blocks
/only -- Inserts a block value as a block
You'll be able to write:
append big-box reduce compose/deep/only [
I hope that helps!
ICQ: 26227169 http://valley.150m.com/