C++ const to D2 const

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Dec 23 11:17:47 PST 2007


"Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message 
news:fkm8vn$2p75$1 at digitalmars.com...

> Yes it does.  In D you have to specify all the members.  RECT should have 
> 4, so
>    RECT r = {0,0,0,0};
> should do it.

...except that if this isn't a static struct declaration, you have to write:

RECT r = RECT(0, 0, 0, 0);

:P 




More information about the Digitalmars-d-learn mailing list