typeof(this) at class scope?

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Jul 8 19:07:39 PDT 2007

"Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message 
news:f6rju3$ljo$1 at digitalmars.com...
> Is this supposed to work?
> It does work currently, but I just want to make sure this is intentional 
> and isn't going to go away.  It seems odd that it works because I thought 
> 'this' didn't really exist outside method bodies.

The page http://www.digitalmars.com/d/declaration.html, in the "typeof" 
section explains that this is legal. 

More information about the Digitalmars-d-learn mailing list