Struct beeing moved around

so so at so.so
Fri May 20 10:52:30 PDT 2011


On Fri, 20 May 2011 20:42:26 +0300, Sean Kelly <sean at invisibleduck.org>  
wrote:

> The compiler can translate this into a single construction (it does in  
> C++), but I don't know that it's required to.

If not, i don't know any other use for constructors, you can do the almost  
same thing with a function.

struct A {
}

A construct() {
}

void main() {
	A a = construct();
}


More information about the Digitalmars-d mailing list