[Issue 11946] "need 'this' to access member" when passing field to template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 23 23:33:12 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11946
--- Comment #21 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-23 23:33:10 PST ---
(In reply to comment #20)
> (In reply to comment #19)
> > Maybe you're misunderstanding the effect of 'static' attribute.
> > As far as I know, it means that:
>
> I think I understand how it works now. But I don't think this is how it SHOULD
> work, because it is not intuitive. No other programming language does this, and
> no one expects it to act like this. So I think it is a limitation imposed by
> implementation detail that needs to be fixed.
I think it is enough reasonable definition because:
1. Currently dmd works that way.
2. It is consistent definition and allow such the code in comment#1.
Anyway, can you agree that the OP code needs fixup with 2.065 and this issue
should me marked as INVALID?
--
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