Gabriele Santilli napsal(a):
> Hi Ladislav,
>
> On Thursday, May 11, 2006, 5:02:04 PM, you wrote:
>
> LM> Gabriele's version looks less comfortable and less reentrant than this
> LM> one, otherwise it may be a matter of preferences.
>
> I'm  relying  on  the  function's context support for recursion to
> handle recursion; depending on how multitasking will work that way
> may  be a problem or not; 
The reentrancy I mean does not necessarily refer to multitasking. It is 
a question whether this test (or similar, more complicated tests) pass 
or fail:

collect x [
    probe collect y [
        foreach i [1 2] [
            x: i
            y: negate i
        ]
    ]
]

> it just saves having a "local" emit, and
> it  means  that the code in the body can call other functions that
> call  emit safely and it will work as intended (which is never the
> case with a local emit). For example, I use something like this in
> Wetan  to temporarily capture the output from the FSM and reuse it
> somewhere else.
>
> As usual it's a matter of trade-offs. :)
>
> Regards,
>    Gabriele.
>   
-L

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to