[Issue 5710] cannot use delegates as parameters to non-global template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 6 11:46:06 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5710
Diggory <diggsey at googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |diggsey at googlemail.com
--- Comment #17 from Diggory <diggsey at googlemail.com> 2013-05-06 11:46:02 PDT ---
Kenji's solution means two context pointer delegates are just normal delegates
(still a function pointer and a context pointer) so they can still be passed
around as usual.
There's no need for dynamic allocation because if the stack frame referred to
by a delegate is invalid when the delegate is called, the results are already
undefined.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list