chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] How to use CHICKEN_apply function? Is there an examp


From: Kon Lovett
Subject: Re: [Chicken-users] How to use CHICKEN_apply function? Is there an example?
Date: Fri, 30 Aug 2019 07:36:08 -0700

none that i know. but the general idea is

C_word args = C_list( … );
C_word proc = C_closure( … ); /* example after http://wiki.call-cc.org/man/5/C%20interface#c_closure */
C_word result;
if (CHICKEN_apply( proc, args, &result )) {
/* do something with result */
} else {
char msg[ 1024 ];
CHICKEN_get_error_message( msg, sizeof msg );
/* do something with error msg */
}

do not want to speak for others but the feeling i get is that CHICKEN is considered a little heavy for embedding. there may not be a lot of experience.

btw, the source might help. CHICKEN_apply, for example, is defined in eval.scm.

On Aug 29, 2019, at 6:21 PM, Aydar Zarifullin <address@hidden> wrote:

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users


reply via email to

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