[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:40:25 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11946
--- Comment #22 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-01-24 09:40:21 EET ---
No, I do not agree that this bug is INVALID. It is still a regression, and I
maintain that the current behavior and your suggested workaround are illogical.
> 1. Currently dmd works that way.
This is not a good argument - if it works in a wrong way, it needs to be fixed.
> 2. It is consistent definition and allow such the code in comment#1.
It shouldn't be required to either use "static" or put the function in a
template block.
Anyway, I understand if this is a very complicated problem that is not worth
stopping the release for, so I would agree with a WONTFIX (or REMIND/LATER?)
resolution. But I think it would be good to hear someone else's opinion in this
discussion first.
--
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