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: Graham Fawcett
Subject: Re: [Chicken-users] Return multiple values from foreign-lambda*
Date: Sat, 7 May 2005 16:30:16 -0500

On 5/7/05, Alejandro Forero Cuervo <address@hidden> wrote:
> 
> Hi.
> 
> How would one return multiple values from foreign-lambda* code?  Is
> this at all possible?

Maybe there's some Chicken magic to support this, but I imagine that
you would have to handle it as you would in C: pass in a pointer to an
array or struct in which the foreign function can store the results;
and have the function return 0 or an error code (or in the case of an
array , perhaps the number of elements written to the array).

-- Graham




reply via email to

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