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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 7 01:22:35 PST 2011


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


Brad Roberts <braddr at puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |braddr at puremagic.com


--- Comment #8 from Brad Roberts <braddr at puremagic.com> 2011-03-07 01:19:35 PST ---
(In reply to comment #6)
> Consider if we add another type - a function pointer with two context pointers.
> Now we have quite a menagerie:
> 
> 1. function pointer
> 2. function pointer with context pointer (delegate)
> 3. function pointer with two context pointers
> 
> Is that really where we want to go?

Yes.  They're just function parameters.  Define how they're passed and pass
'em.  It doesn't need to be fancy or tricky.  It's not particularly different
from passing dynamic arrays having a well defined parameter layout.  Just
considered it just a tuple of two pointers.  It's not rocket science.

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