[Issue 5710] cannot use delegates as parameters to non-global template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 6 15:22:09 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5710



--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2011-03-06 15:19:12 PST ---
(In reply to comment #2)
> So is this an WONTFIX, then?

Unless there's an epiphany somewhere, yes. How would you suggest two hidden
context pointers be handled? Is it clear that two context pointers are required
(at least for this example)?

> Unfortunately it severely hurts my
> std.parallelism design in some use cases, and a workaround for it would be a
> significant PITA to implement, make the API uglier, and possibly be
> inefficient.

I don't know enough about your design to offer help with that. Perhaps instead
of an alias parameter, make fun explicitly a delegate?

-- 
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