On 5/10/07, Alex Queiroz <[EMAIL PROTECTED]> wrote:
Hallo,I've got to bind one of the following functions: handle* Hbox(Ihandle *child, ...); handle* Hboxv(Ihandle **children); Which one is easier in Chicken? I guess I'll have to create a list using the C API, right?
The former: (use dollar) (define h1 ($ c-pointer HBox (c-pointer child1) (c-pointer child2) (c-pointer child3))) But if you want more type-safety, or a general Scheme-interface (not just use HBox in some code), then you should indeed consider creating a pointer list in C, or converting a Scheme list to such a pointer list). cheers, felix _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
