dmd 1.063 and 2.048 release

dickl dick221z at yahoo.com
Wed Aug 11 13:56:13 PDT 2010


On 8/11/2010 1:09 PM, Walter Bright wrote:
> 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>
hmmm doesn't for me, but works just fine in the previous rev.


More information about the Digitalmars-d-announce mailing list