[Vala] this = Object
- From: Cyrille Colin <colin univ-metz fr>
- To: vala-list gnome org
- Subject: [Vala] this = Object
- Date: Tue, 28 Sep 2010 14:10:55 +0200
hi,
i've just update to 0.10 from 0.8.1 and I guess now vala detect one of
my bad.
I used a init function to give my object pointer to external function
that will manage callback :
init(this)
init() is define in a vapi :
public static void init (ValaObj obj);
and use in External library like this :
static void *ValaObj;
void init (void *obj) {
ValaObj = obj;
}
Then i define in vapi the callback, C -> Vala :
public delegate uint32 callback ( ValaObj, int value);
and this is my callback in Vala code:
public uint32 cb (ValaObj obj, int value) {
this = obj;
...
}
it works fine with 0.8.1 and throw exception with 0.10 :
error: unsupported lvalue in assignment
May someone could help me,
thanks in advance,
Cyrille.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]