[Issue 12287] infinite loop on std.traits.moduleName on templated struct member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 2 19:41:17 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12287
--- Comment #13 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-02 19:41:13 PST ---
(In reply to comment #11)
> The __traits code runs semantic on its result immediately after calculating the
> parent. So "later" here means "immediately after".
The semantic will return ScopeExp, and it still contain the TemplateInstance
object. So you are misunderstanding.
> I think that makes no sense. In the same spirit, you could argue that since the
> parent of x is struct S, then x is a member of struct S.
I don't understand what you saying. The parent of struct S and variable x is
the template instance S!int. There's nothing else.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list