chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Return multiple values from foreign-lambda*


From: Zbigniew
Subject: Re: [Chicken-users] Return multiple values from foreign-lambda*
Date: Sun, 15 May 2005 01:08:35 -0500

I was writing CPS code directly with foreign-declare (by studying
compiled output) before discovering the much nicer foreign-primitive. 
It was a good way to learn the internals... ;)

On 5/14/05, felix winkelmann <address@hidden> wrote:
> On 5/14/05, Zbigniew <address@hidden> wrote:
> > I'm returning multiple values with something like C_values(4, 0, C_k,
> > C_fix(1), C_fix(2)).   Is C_values the right function to call?  It
> > works fine, but I wonder if this is for internal use only.
> 
> No, that's fine. It's rather low-level and will work only in a
> foreign-primitive form (I guess you're doing that, because C_k
> is only defined in such a wrapper). But otherwise it's a
> fitting idiom.
> 
> cheers,
> felix
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]