Re: [Vala] Delegate on struct
- From: Nicolas HENRY <icewil gmail com>
- To: Jiří Zárevúcky <zarevucky jiri gmail com>
- Cc: "vala-list gnome org" <vala-list gnome org>
- Subject: Re: [Vala] Delegate on struct
- Date: Mon, 12 Jul 2010 15:59:24 +0200
The program works as expected but this is disturbing.
2010/7/12 Jiří Zárevúcky <zarevucky jiri gmail com>:
Nicolas HENRY píše v Čt 08. 07. 2010 v 01:14 +0200:
Hello,
I don't understand why this code produce a warning (vala 0.9.2) :
public delegate void myDelegateFunc();
struct MyStruct {
public myDelegateFunc my_struct_func;
}
void main(){
string a = "test";
var t = MyStruct();
t.my_struct_func = () => {
print(a);
};
t.my_struct_func();
}
.../test.vala.c: In function ‘_vala_main’:
.../test.vala.c:113: warning: assignment from incompatible pointer type
Thanks.
Does the program work as expected? If it does, just ignore C warnings.
They will get fixed some day (hopefully).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]