Struct Postblit Void Initialization

Jiyan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 30 12:22:07 PDT 2017


Hey,
just wanted to know whether something like this would be possible 
sowmehow:

struct S
{
int m;
int n;
this(this)
{
m = void;
n = n;
}
}

So not the whole struct is moved everytime f.e. a function is 
called, but only n has to be "filled"



More information about the Digitalmars-d-learn mailing list