[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Returning a value from foreign-lambda*
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Returning a value from foreign-lambda* |
Date: |
Sat, 1 Sep 2007 18:13:58 +0200 |
On 8/28/07, Zbigniew <address@hidden> wrote:
> This is strange. What it used to say, at some point, was that the
> argument to return had to be wrapped in parentheses, i.e. return(x).
> That's because return() itself is a macro which does all the proper
> cleanup and calls the current continuation. C_return() is just an
> alias to the return() macro, and as you probably noticed, 99% of
> existing code uses return(). However, C_return() will work as well.
>
> I can only guess that the instruction to use C_return() was put in
> there to force people to use the parens, to avoid the case where you
> say 'return x' instead of 'return(x)'.
>
That's correct.
cheers,
felix
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Chicken-users] Returning a value from foreign-lambda*,
felix winkelmann <=