dmd 1.063 and 2.048 release

Walter Bright newshound2 at digitalmars.com
Wed Aug 11 10:09:39 PDT 2010


dickl wrote:
> I should have been a little more clear, a static this() as a member of a 
> class.

Still works:
--------------------------

H:\cbx>type test.d

import std.stdio;

void main()
{
     printf("hello\n");
}

class C
{
     static this()
     {
         printf("betty\n");
     }
}


H:\cbx>dmd test

H:\cbx>test
betty
hello

H:\cbx>


More information about the Digitalmars-d-announce mailing list