[Issue 17836] ICE with custom 'map' template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 19 20:36:45 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17836

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #4)
> 
> This is how you track the 'this' pointer for mmap to the frame of
> printstuffs.
> 

Also note that you can't trust toParent2() here, as it returns the function the
template was declared in. Parent access should be done through toParent() to
properly inspect whether a template comes from another template instance
(declared in another context).

--


More information about the Digitalmars-d-bugs mailing list