typeof(this) at class scope?
Bill Baxter
dnewsgroup at billbaxter.com
Sun Jul 8 20:23:53 PDT 2007
Jarrett Billingsley wrote:
> "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.
Great. Thanks for clearing that up for me.
--bb
More information about the Digitalmars-d-learn
mailing list