[Issue 8863] struct passed to template: cannot access frame pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 14 01:07:55 PST 2012


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



--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-14 01:07:54 PST ---
(In reply to comment #4)
> The example you gave an example of a bug where a reference to a local is
> returned, something entirely different.

No, they are is related.

My argue is: there is no generic rule which make Tuple!(X, Y) un-nested but
fun!A make nested. TemplateInstance::hasNestedArgs() works on the template
instance, so it cannot know the actual instantiated result is a type (from
Tuple!(X, Y)) or a function (from fun!A). It's time paradox.

To implement your argument, we need much special code to support the case.
It increases the compiler complexity for the much less benefit.

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