static this

Hasan Aljudy hasan.aljudy at gmail.com
Sat Oct 7 05:57:47 PDT 2006



Max Samuha wrote:
> 
> Btw, i still can't see the reason why D doesn't treat 'static' as an
> attribute of 'this' like other static methods? Could anybody explain?
> 
> class Test
> {
> static:
>   this(){}; // make it static ctor, not instance.  it's confusing!
>   void foo();	 
> }

My wild guess would be that the "static" significantly changes the 
functionality of "this()" so it's much more than just an attribute.



More information about the Digitalmars-d mailing list