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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 7 00:38:26 PST 2011


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


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de


--- Comment #7 from Rainer Schuetze <r.sagitario at gmx.de> 2011-03-07 00:35:26 PST ---
This could be implemented with a single context pointer, if the this pointer of
the Foo instance can be found through the stack frame pointer. In the example
the pointer to foo is already there, but in the more general case, a hidden
stack/closure variable needs to be used.

I'm not sure how much it would complicate code generation, though. It could end
up as a can of worms, e.g. having to deal with multiple aliases to different
kind of context pointers.

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