On 9/2/11 8:29 PM, Andrej Mitrovic wrote:
So how can I selectively copy the state of some variables at the site of the definition of a delegate literal?
You can try introducing a new frame using a immediately executed delegate literal:
button.connect!(Signal.MouseClick) = {
auto index = menuIndex;
return { this.showMenu(index); };
}();
David
