19 May
2004
19 May
'04
11:27 p.m.
I have tried: function0<void> funcs = (func1, func2); but this seems to execute only one of the two functions when it is called.
Here no lambda expression is involved. It is equivalent to "funcs = func2;".
I have also tried: function0<void> funcs = (_1(), _2())(func1, func2);
Mhm, don't know whether this should work. However, the following does: function0<void> funcs = ( bind<void>(func1), bind<void>(func2) ); You just delay the call to the function objects, as you would do with a function. Wolfgang Meyer