[Article Submission] Have Your Efficiency, and Flexibility Too
Nick Sabalausky
a at a.a
Wed Jun 1 14:32:11 PDT 2011
"Timon Gehr" <timon.gehr at gmx.ch> wrote in message
news:is5iha$1e2k$1 at digitalmars.com...
>
> It is not documented in detail but it is there =).
> See: http://www.digitalmars.com/d/2.0/declaration.html
> "1. typeof(this) will generate the type of what this would be in a
> non-static
> member function, even if not in a member function. "
>
> Therefore it is not special cased, but is supposed to work universally.
>
> That it does not work for Nick is probably a bug, not a sensible and
> thought-out
> limitation. It can be very handy for Metaprogramming, this needs to get
> fixed at
> some point.
>
> @Nick: Can you try to deduce a minimal test case? (Or provide the full
> listing of
> the code?)
>
Done:
http://d.puremagic.com/issues/show_bug.cgi?id=6087
More information about the Digitalmars-d
mailing list