On Mon, Jun 20, 2011 at 6:27 PM, Nor Jaidi Tuah <[email protected]>wrote:
> On Mon, 2011-06-20 at 17:37 -0700, Jim Nelson wrote: > > With async, the delegate *is* copied, you just don't see it in the > > Vala code. With an async method, when the thread of execution yields, > > the state of the function at that point is stored (copied or ref'd) in > > a context structure. When the thread of execution resumes later, the > > state is pulled back out and the function resumes. > > Has that any bearing on the bug I mentioned in > my earlier email? > > If you mean the warning about copying delegates being discouraged, then yes it has bearing -- the delegate is being copied inside the async function. That's my point, the warning is accurate, it's because async methods have certain side-effects that are not apparent in the code on the screen. For another example of this, see https://bugzilla.gnome.org/show_bug.cgi?id=639054 The problem regarding the closure I haven't looked into. -- Jim
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
