[Issue 11946] "need 'this' to access member" when passing field to template parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 3 08:12:43 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11946



--- Comment #32 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-03 18:12:41 EET ---
(In reply to comment #31)
> It does not really matter. What is the point of adding more features is they
> break basic guarantees? It does not fit nicely with idea that templates are not
> affected by instantiation scope and forces you to pollute your code with loads
> of boilerplate just to be sure.

I certainly won't complain if this change is reverted and replaced with a
suitable alternative, even if it means I'll have to rewrite all the code that
depends on it.

> It should be other way around, "dynamic alias" for those who do want a context
> pointer. "Don't pay for what you don't use" and principle of least surprise.

Fair enough, though we don't have a "dynamic" keyword we can abuse here...

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