No subject


Sat Oct 4 17:15:07 PDT 2008


"The static initializer syntax can also be used to initialize non-static
variables, provided that the member names are not given. The initializer need
not be evaluatable at compile time.

void test(int i)
{
    S s = { 1, i };   // q.a = 1, q.b = i, q.c = 0, q.d = 7
}"


-- 



More information about the Digitalmars-d-bugs mailing list