[Top][All Lists]

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

[Chicken-users] Returning a value from foreign-lambda*

From: Will M Farr
Subject: [Chicken-users] Returning a value from foreign-lambda*
Date: Tue, 28 Aug 2007 10:46:56 -0400

Hello all,

In my copy of chicken (SVN, revision 5752), the way to return an object at the end of a foreign-lambda* is by using return(obj). The wiki manual, however, says that I should use C_return(obj), as in

(define my-strlen
  (foreign-lambda* int ((c-string str))
    "int n = 0;
     while(*(str++)) ++n;
     C_return(n);") )

Which of these is the canonical one? I'd be happy to change one of them (foreign-lambda* macro or wiki) to match the other.


reply via email to

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