> First, neko is awesome, i'm finding the FFI very intuitive to use.
> Thanks for such great software.
> 
> I'm attempting to wrap Gtk in neko for use in haxe and so far it's
> going quite well, but my first question is
> 
> value labelSetText(value w,value l) {
>       val_check_kind(w,k_label);
>       val_check(l,string);
>       gtk_label_set_text(GTK_LABEL(val_data(w)),val_string(l));
>       return val_true;
> }

val_string is a reference, not a copy.
But I think that gtk_label_set_text itself makes a copy of the parameter
string, so I think it should be working.

> And I've come across a bizarre problem with the function above, I call
> it with

Where does your label comes from ? It might be "null", or not correctly
wrapped using new String(s) after readed from neko.

Nicolas


-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to