Hi, Ladislav
And why not an in-line function like:
compose...
do (func [] reduce [body])
I have others little questions on your code:
1) A little thing: couldn't loop start to none?
loop: none
...
either loop [
loop: 1
] [
until [
loop: none
error? set/any 'result do (func [] reduce [body])
not loop
]
loop: none
2) You leave 'result global, why?
---
Ciao
Romano
----- Original Message -----
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 8:30 AM
Subject: [REBOL] Re: tailfunc
> Hi Romano,
>
> <<Romano>>
> (...)
> can you explain to me why you use the external function Exec in your
> tail-func?
>
> Why can't you use a simple Do?
>
> ---
> Ciao
> Romano
> <</Romano>>
>
> Do wouldn't handle Return in the same way as Exec does:
>
> exec: func [body] [do body]
> body: [return 1]
> exec body ; == 1
> do body
> ** Throw Error: Return or exit not in function
> ** Near: return 1
>
> Cheers
> Ladislav
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.