On 07/12/2014 12:38 PM, Danyal Zia wrote: > You can initialize in constructor this(), but you can't initialize > partial fields of struct when using pointer to struct.
Actually, that works too but members must be initialized from the beginning. The trailing ones are left with .init values:
struct S { int i; string s; } void main() { auto s = new S(42); static assert(is (typeof(s) == S*)); } Ali