Re: [Vala] SourceFunc with parameters?
- From: Michael 'Mickey' Lauer <mickey vanille-media de>
- To: vala-list <vala-list gnome org>
- Subject: Re: [Vala] SourceFunc with parameters?
- Date: Sun, 10 Jan 2010 16:13:25 +0100
Am Sonntag, den 10.01.2010, 15:57 +0100 schrieb JM:
I'm just trying to make some Idle and Source callback functions and I
would really love to hand over some function parameters to these
SourceFuncs.
Is there a sane way to do it? Maybe something better than just writing
params to class variables and then picking them up from the idle
callback, while hoping these have not changed in the meantime?
You can use closures for that.
--
:M:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]