dmd 1.063 and 2.048 release

dickl dick221z at yahoo.com
Wed Aug 11 09:57:02 PDT 2010


On 8/11/2010 12:04 PM, Walter Bright wrote:
> dickl wrote:
>> static this() does not seem to be getting called, at least in D2.
>
> Works for me:
> -------------------------------
> H:\cbx>type test.d
>
> import std.stdio;
>
> void main()
> {
> printf("hello\n");
> }
>
> static this()
> {
> printf("betty\n");
> }
>
> H:\cbx>dmd test
>
> H:\cbx>test
> betty
> hello
>
> H:\cbx>

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



More information about the Digitalmars-d-announce mailing list