"Timon Gehr" <timon.g...@gmx.ch> wrote in message news:is5iha$1e2k$1...@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