Re: [Vala] SourceFunc with parameters?



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]